1 #include <unistd.h>
2 #include "strerr.h"
3 #include "pathexec.h"
4 
5 #define FATAL "pgrphack: fatal: "
6 
main(int argc,const char * const * argv,const char * const * envp)7 int main(int argc,const char * const *argv,const char * const *envp)
8 {
9   if (!argv[1]) strerr_die1x(100,"pgrphack: usage: pgrphack child");
10   setsid(); /* shouldn't fail; if it does, too bad */
11   pathexec_run(argv[1],argv + 1,envp);
12   strerr_die4sys(111,"pgrphack: fatal: ","unable to run ",argv[1],": ");
13 }
14