소스 검색

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

Andrei Pelinescu-Onciul 19 년 전
부모
커밋
5b84defdc6
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      main.c

+ 2 - 2
main.c

@@ -657,7 +657,7 @@ static void sig_usr(int signo)
 					pkg_status();
 					#endif
 #endif
-					exit(0);
+					_exit(0);
 					break;
 			case SIGUSR1:
 				/* statistics, do nothing, printed only from the main proc */
@@ -673,7 +673,7 @@ static void sig_usr(int signo)
 						"we do not worry about grand-children\n");
 #endif
 #else
-					exit(0); /* terminate if one child died */
+					_exit(0); /* terminate if one child died */
 #endif
 					break;
 		}