blob: e359a1b0d2417ebf66c8da91e776c44844004956 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
--- 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()
|