Fix invalid signals passed to restorePlatformDefault. Those need to be
handled by the fake signal handler instead.
Merge pull request #2175 from cheald/signal_fix

Fix invalid signals passed to restorePlatformDefault.