سؤال

i have a call like this.

int fd[2];
pipe(fd)

and then

dup2(fd[WRITE],STDOUT_FILENO)

is there a way to use the dup call to duplicate both 1 and 2 to fd[WRITE]?

لا يوجد حل صحيح

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top