what's next? In Linux there's a cool system call dup2() which assigns to a file referenced by one file descriptor some other one, given by the caller.
+
what's next? In Linux there's a cool system call <code>dup2()</code> which assigns to a file, referenced by one file descriptor, some other one, given by the caller.