Browse code

kill of children moved.

Jan Janak authored on 20/09/2002 12:47:15
Showing 1 changed files
... ...
@@ -415,6 +415,10 @@ void handle_sigs()
415 415
 				
416 416
 			/* first of all, kill the children also */
417 417
 			kill(0, SIGTERM);
418
+
419
+			     /* Wait for all the children to die */
420
+			while(wait(0) > 0);
421
+
418 422
 			destroy_modules();
419 423
 #ifdef PKG_MALLOC
420 424
 			LOG(memlog, "Memory status (pkg):\n");