X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Frefile.c;h=55ba754e8797729dfb18e7745da170da8d73e023;hp=00647ddd1463dbda1d0ce388e1f930b59b755361;hb=dfa0332c4e6144699dedd5c9795219adc0f9c0d2;hpb=240013872c392fe644bd4f79382d9f5314b4ea60 diff --git a/sbr/refile.c b/sbr/refile.c index 00647dd..55ba754 100644 --- a/sbr/refile.c +++ b/sbr/refile.c @@ -33,18 +33,18 @@ refile(char **arg, char *file) context_save(); /* save the context file */ fflush(stdout); - switch (pid = vfork()) { - case -1: - advise("fork", "unable to"); - return -1; - - case 0: - execvp(fileproc, vec); - fprintf(stderr, "unable to exec "); - perror(fileproc); - _exit(-1); - - default: - return (pidwait(pid, -1)); + switch (pid = fork()) { + case -1: + advise("fork", "unable to"); + return -1; + + case 0: + execvp(fileproc, vec); + fprintf(stderr, "unable to exec "); + perror(fileproc); + _exit(-1); + + default: + return (pidwait(pid, -1)); } }