[erlang-questions] open_port and port_close semantics

Camille Troillard tuscland@REDACTED
Fri May 1 02:33:37 CEST 2009


Thank you Richard.

On Thu, Apr 30, 2009 at 2:00 PM, Richard Andrews <bbmaj7@REDACTED>wrote:

> On close a port program may need to perform additional steps to close down
> gracefully, turn off hardware, log out of facilities, remove files, log
> events, etc.
>
> A heartbeat system is effective if the pipe closure event is not reliably
> delivered; ie. exit if no event from the erlang node for N seconds.
>
> If erlang is exiting gracefully then send a shutdown command to the port
> program and wait for the port to be closed.
>
> --
>   Rich
>
> ------------------------------
> *From:* Camille Troillard <tuscland@REDACTED>
> *To:* erlang-questions@REDACTED
> *Sent:* Thursday, 30 April, 2009 8:50:09 PM
> *Subject:* [erlang-questions] open_port and port_close semantics
>
> Hello,
> I am trying to understand the semantics of open_port and port_close.
> I was expecting port_close to send a quit signal to the child process, but
> it merely close the file handlers from what I've read in the doc and
> trapexit forums.
>
> What is the reason behind this?
> How do you make sure there are no leftover processes when the application
> shuts down?
>
>
> ------------------------------
> Enjoy a better web experience. Upgrade to the new Internet Explorer 8
> optimised for Yahoo!7. Get it now.<http://au.rd.yahoo.com/search/ie8/mailtagline/*http://us.lrd.yahoo.com/_ylc=X3oDMTJxbnQwdTJhBF9zAzIxNDIwMjU2NTkEdG1fZG1lY2gDVGV4dCBMaW5rBHRtX2xuawNVMTEwMzQ0OAR0bV9uZXQDWWFob28hBHRtX3BvcwN0YWdsaW5lBHRtX3BwdHkDYXVueg--/SIG=11k6t9t1c/**http://downloads.yahoo.com/au/internetexplorer/>
> .
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20090501/02030fa2/attachment.htm>


More information about the erlang-questions mailing list