logo

Crowdly

In the following code, we want data from A to be redirected to B. What should be...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

In the following code, we want data from A to be redirected to B. What should be the xxx and yyy parameters ?

    pipe(p); pid = fork();

    if (pid == 0) { dup2(xxx); close(p[0]); close(p[1]); execlp("B", "B", NULL); }

    else { dup2(yyy); close(p[0]); close(p[1]); execlp("A", "A", NULL); }

100%
0%
100%
0%
More questions like this

Want instant access to all verified answers on moodle.usth.edu.vn?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!