pantomime-rs / pantomime

MIT License
5 stars 1 forks source link

Windows / macOS #24

Closed longshorej closed 5 years ago

longshorej commented 5 years ago

macOS tests didn't work because they relied on SIGUSR1/SIGUSR2, which has a different value on Linux. For now, removed these and using SIGHUP for the test instead given that its the same across most (all?) modern POSIX systems.

Windows support has been added by ensuring signal-hook is not compiled when running on that OS. This effectively turns the posix-signals-support feature into a noop on Windows, by introducing a shim crate that reexports signal-hook iff running on UNIX.