<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body bgcolor="#FFFFFF" text="#000000">
On 2017/5/28 00:06, Michael Truog wrote:<br>
<blockquote cite="mid:5929A400.9060204@gmail.com" type="cite"><br>
 On 2017/5/27 23:31, Khitai Pang wrote: <br>
<blockquote type="cite">
<blockquote type="cite">I have observed a situation where the port process exits with reason
<br>
'einval' but the external program still runs.  The connected process of <br>
the port receives {EXIT,#Port<0.3069817>,einval}.  What makes a port <br>
process exit with 'einval' while the external program still runs? <br>
</blockquote>
</blockquote>
<br>
Normally that is due to the port source code</blockquote>
<br>
Do you mean the source code of the external program?<br>
<br>
<blockquote cite="mid:5929A400.9060204@gmail.com" type="cite">not handling a HUP on the output file descriptor,from poll (POLLHUP) or the equivalent using a different function.<br>
</blockquote>
<br>
Could you be more specific about this situation?  In what occasions will this happen?<br>
<br>
My external program is a python script that uses <a href="https://pypi.python.org/pypi/erlport">
erlport</a> to communicate with erlang.<br>
<br>
<br>
Thanks<br>
Khitai<br>
<br>
<blockquote cite="mid:5929A400.9060204@gmail.com" type="cite">Best Regards, <br>
Michael <br>
</blockquote>
<br>
</body>
</html>