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