#390 Regina's handling of SIGPIPE not correct

closed-fixed
Mark Hessling
5
2014-06-08
2012-10-23
Anonymous
No

When Regina is used within a multi-threaded application that also uses TCP/IP sockets (from C code) SIGPIPE signals are ignored and instead handles the appropriate return codes.

But when Regina calls an external process it changes the SIGPIPE handling to SIG_IGN but then sets it to SIG_DFL. This can cause the the application process to die occcasionally when SIGPIPE occurs on one of the socket connections.

Regina should restore the signal action on SIGPIPE to what it was before calling the external process.

Thank you very much for your help,
Joachim

Discussion

  • Mark Hessling
    Mark Hessling
    2013-06-28

    • status: open --> pending
    • Group: v3.7 --> Next Release
     
  • Mark Hessling
    Mark Hessling
    2013-06-28

    Resolved. Signal handling restores previous signal handler.

     
  • Mark Hessling
    Mark Hessling
    2014-06-08

    • Status: pending --> closed-fixed
    • Group: Next Release -->