ExTermbox.PortHandler.PortExitHandler (ExTermbox v1.1.5)

View Source

Handles Port exit ({:EXIT, port, reason}) messages for ExTermbox.PortHandler.

Summary

Functions

Handles the unexpected termination of the underlying C port process.

Functions

handle_port_exit(status, state)

Handles the unexpected termination of the underlying C port process.

It logs the error, updates the state to reflect the failure, notifies the owner, attempts to reply with an error to any pending caller, cleans up the socket, and returns a :stop tuple for the PortHandler GenServer.