Re: Catching SIGPIPE

2019-02-15 Thread Marius Gerbershagen
Dear Gunter, signal handlers can be installed and queried with the (currently undocumented) ext:set-signal-handler, ext:get-signal-handler functions: CL-USER> (ext:set-signal-handler EXT:+SIGPIPE+ 'ext:quit) QUIT CL-USER> (ext:get-signal-handler EXT:+SIGPIPE+) QUIT The ECL_OPT_TRAP_SIGPIPE op

Catching SIGPIPE

2019-02-15 Thread Gunter Königsmann
Dear all, Maxima (which is written in lisp) connects to its front-end using a network socket. stdout and stderr of the lisp are redirected to this socket. If the front-end dies unexpectedly this seems to cause ECL to output an error message which (since it cannot be output) causes an error messag