#1 SIGHUP fix for Solaris

closed
nobody
None
5
2004-10-31
2004-02-26
Steven Kehlet
No

On Solaris, signal handlers set with signal() get reset
after every handling. Thus two SIGHUPs will kill vmpsd.

The fix is to use the more modern sigaction().
sigaction should exist everywhere but I added a check
via autoconf just in case. I tested the patch on
Solaris, Linux, and FreeBSD.

Btw, vmpsd rocks. Thanks for sharing it.

Steve

Discussion

  • Steven Kehlet
    Steven Kehlet
    2004-02-26

    patch to use sigaction if available

     
    Attachments
  • Dori Seliskar
    Dori Seliskar
    2004-03-10

    Logged In: YES
    user_id=466942

    Thanks, will apply it in next release.

     
  • Dori Seliskar
    Dori Seliskar
    2004-10-31

    Logged In: YES
    user_id=466942

    Finally applied in 1.3.

     
  • Dori Seliskar
    Dori Seliskar
    2004-10-31

    • status: open --> closed