|
|
|
|
|
by a1369209993
2627 days ago
|
|
Specifically, you'd want to do something like: pid_t child = pfork();
for(int fd=0;fd<3;fd++) p_open2(child,fd,pts,O_RDWR);
char** envp = munge_env(/*parent's*/ environ);
int err = p_execve(child,file,argv,envp);
(Y'know, this looks kind of familiar...) |
|