X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fwhatnow.c;h=b809ebebdf879b0c0f3f6ea100adf75c7a1b5d67;hp=761fea1db83cbf619adf86d696d8062d67d1ab43;hb=5fbf37ee68e018998ada61eeab73e035b26834b6;hpb=75a3bc56e890a9ca5e25f194acbb574e942de5c5 diff --git a/uip/whatnow.c b/uip/whatnow.c index 761fea1..b809ebe 100644 --- a/uip/whatnow.c +++ b/uip/whatnow.c @@ -770,15 +770,13 @@ static int sendfile(char **arg, char *file, int pushsw) { pid_t child_id; - int i, vecp; + int vecp; char *vec[MAXARGS]; context_save(); /* save the context file */ fflush(stdout); - for (i = 0; (child_id = fork()) == NOTOK && i < 5; i++) - sleep(5); - switch (child_id) { + switch (child_id = fork()) { case NOTOK: advise(NULL, "unable to fork, so sending directly..."); /* fall */