char **arguments;
struct msgs_array msgs = { 0, 0, NULL };
struct msgs *mp;
- pid_t pid;
setlocale(LC_ALL, "");
invo_name = mhbasename(argv[0]);
vec[vecp++] = msgs.msgs[msgnum];
}
vec[vecp] = NULL;
+ done(execprog(*vec, vec));
- fflush(stdout);
- switch (pid = fork()) {
- case -1:
- adios("fork", "unable to");
-
- case 0:
- execvp(*vec, vec);
- fprintf(stderr, "unable to exec ");
- perror(*vec);
- _exit(-1);
-
- default:
- pidwait(pid, -1);
- }
-
- done(0);
- return 1;
+ return 1; /* just in case ... */
}