Skip to content

Refactored signal handling #108

Merged
merged 1 commit into from Jan 3, 2013

3 participants

@hintjens
The ZeroMQ project member
hintjens commented Jan 3, 2013
  • non-portable signal code moved to zsys
  • zsys_handlers_set (NULL) to prevent CZMQ installing its handlers
  • note: no longer a side-effect of setting zctx_interrupted to 1
  • zsys_handlers_reset () at exit to restore default handlers
@hintjens hintjens Fixed signal handling
- non-portable signal code moved to zsys
- zsys_handlers_set (NULL) to prevent CZMQ installing its handlers
- note: no longer a side-effect of setting zctx_interrupted to 1
- zsys_handlers_reset () at exit to restore default handlers
ff78651
@hintjens
The ZeroMQ project member
hintjens commented Jan 3, 2013

It would be cool to get this working on Windows too but I don't have a Windows box.

@felipecruz felipecruz merged commit 7ecc797 into zeromq:master Jan 3, 2013
@pijyoi
pijyoi commented Jan 4, 2013
@hintjens
The ZeroMQ project member
@pijyoi
pijyoi commented Jan 6, 2013

Xitami seems to be doing it by using a 5x shorter select() timeout (200ms) when under Windows.

https://github.com/imatix/Xitami-25/blob/master/smt/smtsock.c
function wait_for_socket_activity()

@hintjens
The ZeroMQ project member
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.