Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int main()
- {
- int[2]in;
- int[2]out;
- auto pin = pipe(in, 0);
- auto pid = fork();
- if (pid == 0)
- {
- //FIXME: il manque tous les dup2, je sais pas ou les mettre
- char* const* args = { nullptr };
- execvp(/*il me manque un truc la*/, args);
- exit(0);
- }
- else
- {
- wait(&pid);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement