cost 75 ms
Implementing dup2 in xv6

I'm taking an OS class and we have to implement dup2() in xv6. The code I've written should theoretically work, but, when I try to execute tests, it d ...

Issue with dup2

I am trying a simple program where the STDOUT from Child process is directed to the Parent process. The program works if I don't fork multiple times a ...

Can't redirect printf to pipe

I want to redirect the output of printf to a pipe, but for some reason it doesn't seem to work. What does work is using write instead. This is my pro ...

2022-03-25 20:49:32   1   193    c / linux / dup2  

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM