c/unix q

c/unix q

Erez D erez0001 at gmail.com
Tue Jun 4 14:24:14 IDT 2013


hello

using the usual pipe()+fork()+dup()+close() to fork a child process and
pipe data from and to it,

I  know both the child and parent must close the unused fds.

why ?
what if i don't close the unsed fds ?


thanks,
erez.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cs.huji.ac.il/pipermail/linux-il/attachments/20130604/61da640e/attachment.html>


More information about the Linux-il mailing list