Browse code

- safer child exit on signal (s/exit()/_exit())

Andrei Pelinescu-Onciul authored on 04/11/2006 01:31:06
Showing 1 changed files
... ...
@@ -657,7 +657,7 @@ static void sig_usr(int signo)
657 657
 					pkg_status();
658 658
 					#endif
659 659
 #endif
660
-					exit(0);
660
+					_exit(0);
661 661
 					break;
662 662
 			case SIGUSR1:
663 663
 				/* statistics, do nothing, printed only from the main proc */
... ...
@@ -673,7 +673,7 @@ static void sig_usr(int signo)
673 673
 						"we do not worry about grand-children\n");
674 674
 #endif
675 675
 #else
676
-					exit(0); /* terminate if one child died */
676
+					_exit(0); /* terminate if one child died */
677 677
 #endif
678 678
 					break;
679 679
 		}