summaryrefslogtreecommitdiffstats
path: root/utils/cmdpad/patches/130-no_zombie.patch
blob: aa4fc6a0af2fb5cb75c236793c63941a69fb5804 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- cmdpad-0.0.3/src/command.c.orig	2003-03-29 17:54:12.000000000 +0100
+++ cmdpad-0.0.3/src/command.c	2008-01-12 05:41:22.000000000 +0100
@@ -68,6 +68,7 @@
 
 void exec( char * command)
 {
+    int status;
 	if( fork() == 0) {
 		char ** tmp ;
 		int i ;
@@ -88,6 +89,7 @@
 		perror( "ERROR: execv") ;
 		exit( 1) ;
 	} // end if( fork())
+        wait(&status);
 }
 
 int getNumberofEntry()