--- 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()
|