Linux Operating System Guide

Linux Operating System Guide
by Marcellinus Markus / / / Kindle


Read Online 1.5 MB Download


If the parent wants to receive data from the child, it should close fd1, and the child should close fd0. If the parent wants to send data to the child, it should close fd0, and the child should close fd1. Since descriptors are shared between the parent and child, we should always be sure to close the end of pipe we aren’t concerned with. On a technical note, the EOF will never be returned if the unnecessary ends of the pipe are not explicitly

views: 719