s/vfork/fork/
[mmh] / sbr / showfile.c
index c0d3608..78eea64 100644 (file)
@@ -24,10 +24,10 @@ showfile(char **arg, char *file)
        ** then really invoked the mhlproc instead
        ** (which is usually mhl anyway).
        */
-       if (!strcmp(r1bindex(lproc, '/'), "mhl"))
+       if (!strcmp(mhbasename(lproc), "mhl"))
                lproc = mhlproc;
 
-       switch (pid = vfork()) {
+       switch (pid = fork()) {
        case -1:
                /* fork error */
                advise("fork", "unable to");
@@ -36,7 +36,7 @@ showfile(char **arg, char *file)
        case 0:
                /* child */
                vecp = 0;
-               vec[vecp++] = r1bindex(lproc, '/');
+               vec[vecp++] = mhbasename(lproc);
                isdraft = 1;
                if (arg) {
                        while (*arg) {