130-no_zombie.patch 393 B

123456789101112131415161718
  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. void exec( char * command)
  5. {
  6. + int status;
  7. if( fork() == 0) {
  8. char ** tmp ;
  9. int i ;
  10. @@ -88,6 +89,7 @@
  11. perror( "ERROR: execv") ;
  12. exit( 1) ;
  13. } // end if( fork())
  14. + wait(&status);
  15. }
  16. int getNumberofEntry()