I strugled with file descriptors and beejs book too. The moment of enlightement was when I understood how c dup function works.
PS:This is late answer but maybe it can help someone
I strugled with file descriptors and beejs book too. The moment of enlightement was when I understood how c dup function works.
PS:This is late answer but maybe it can help someone