Browse code

*** empty log message ***

Andrei Pelinescu-Onciul authored on 20/09/2002 08:58:02
Showing 1 changed files
... ...
@@ -412,6 +412,8 @@ void handle_sigs()
412 412
 			else
413 413
 				DBG("SIGTERM received, program terminates\n");
414 414
 				
415
+			/* first of all, kill the children also */
416
+			kill(0, SIGTERM);
415 417
 			destroy_modules();
416 418
 #ifdef PKG_MALLOC
417 419
 			LOG(memlog, "Memory status (pkg):\n");
... ...
@@ -425,8 +427,6 @@ void handle_sigs()
425 425
 			shm_mem_destroy();
426 426
 #endif
427 427
 			if (pid_file) unlink(pid_file);
428
-			/* kill children also*/
429
-			kill(0, SIGTERM);
430 428
 			dprint("Thank you for flying " NAME "\n");
431 429
 			exit(0);
432 430
 			break;