packages/utils/cmdpad/patches/130-no_zombie.patch
Ilya Lipnitskiy 5d8d4fbbcb
treewide: Run refresh on all packages
The crude loop I wrote to come up with this changeset:

  find -L package/feeds/packages/ -name patches | \
  sed 's/patches$/refresh/' | sort | xargs make

Signed-off-by: Ilya Lipnitskiy <ilya.lipnitskiy@gmail.com>
2021-02-20 16:02:15 -08:00

18 lines
347 B
Diff

--- a/src/command.c
+++ b/src/command.c
@@ -68,6 +68,7 @@ struct CMD * cmd = NULL ;
void exec( char * command)
{
+ int status;
if( fork() == 0) {
char ** tmp ;
int i ;
@@ -88,6 +89,7 @@ void exec( char * command)
perror( "ERROR: execv") ;
exit( 1) ;
} // end if( fork())
+ wait(&status);
}
int getNumberofEntry()