[erlang-questions] Port process exits with status einval while external program still runs

Khitai Pang khitai.pang@REDACTED
Sat May 27 18:21:28 CEST 2017


On 2017/5/28 00:06, Michael Truog wrote:

 On 2017/5/27 23:31, Khitai Pang wrote:
I have observed a situation where the port process exits with reason
'einval' but the external program still runs.  The connected process of
the port receives {EXIT,#Port<0.3069817>,einval}.  What makes a port
process exit with 'einval' while the external program still runs?

Normally that is due to the port source code

Do you mean the source code of the external program?

not handling a HUP on the output file descriptor,from poll (POLLHUP) or the equivalent using a different function.

Could you be more specific about this situation?  In what occasions will this happen?

My external program is a python script that uses erlport<https://pypi.python.org/pypi/erlport> to communicate with erlang.


Thanks
Khitai

Best Regards,
Michael

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20170527/391f0d42/attachment.htm>


More information about the erlang-questions mailing list