jerome-pouiller / reredirect

Tool to dynamicly redirect outputs of a running process
MIT License
555 stars 73 forks source link

READEME wrong dup2 #12

Closed EricYT closed 5 years ago

EricYT commented 5 years ago

The function synopsis of dup2 is int dup2(int oldfd, int newfd);. So the first argument should be oldfd, not the target.