dalbothek / MVHP

Minecraft VirtualHost Proxy
23 stars 6 forks source link

Compatibility: warn if SIGHUP and/or SIGINFO not supported #2

Closed pauln closed 12 years ago

pauln commented 12 years ago

If SIGHUP and/or SIGINFO not supported, MVHP will fail to start. This patch catches these exceptions and outputs a warning, continuing to launch but not attaching the relevant handler.

SIGINFO does not appear to be supported on my Ubuntu 11.10 (64-bit) install, which was preventing me from using MVHP - this change may even make it work on Windows, which (according to the Python docs) doesn't support either SIGINFO or SIGHUP.

dalbothek commented 12 years ago

Thanks, I thought even windows supports SIGHUP, but apparently I was wrong. I also thought that SIGINFO works on ubuntu, I even checked the signal man page, but it appears to be a BSD-only thing.