<html style="direction: ltr;">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<style type="text/css">body p { margin-bottom: 0.2cm; margin-top: 0pt; } </style>
</head>
<body style="direction: ltr;"
bidimailui-detected-decoding-type="UTF-8" bgcolor="#FFFFFF"
text="#000000">
<div class="moz-cite-prefix">On 04/06/13 15:28, Erez D wrote:<br>
</div>
<blockquote
cite="mid:CAMUp3wnNP0CwXFXyGPBkGUepSfC5NfXkkJRaLNkVKkDD0wW20Q@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>
<div>
<div>thanks,<br>
<br>
so i guess if i use unidirectional connection, and the
reader does not expect to get an EOF()<br>
</div>
thank i'm safe.<br>
<br>
</div>
</div>
</div>
</blockquote>
Why are you so keen on doing it wrong?<br>
<br>
No, you are not safe. If the child process dies because of a
segmentation fault (or whatever), the parent will notice this
through the EOF received (I am assuming here, since you couldn't be
bothered with closing a file descriptor, that you did not install a
SIGCHLD handler to monitor for this possibility). This means that
should one process die unexpectedly, the other will hang forever.<br>
<br>
Best practices are there for a reason, despite what others here
might have you think.<br>
<br>
Shachar<br>
</body>
</html>