chiark / gitweb /
util: fix minimal race where we might miss SIGTERMs when forking off an agent
authorLennart Poettering <lennart@poettering.net>
Wed, 27 Aug 2014 19:42:20 +0000 (21:42 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 27 Aug 2014 19:43:46 +0000 (21:43 +0200)
commit8a7c93d858c342744adf481565d8bb03b9713dcf
tree578daa511df7f6ee42445385aab06cccd3372a60
parentc609cb9898dc8dec5dcb0b1d111b3f6b6a5e09d4
util: fix minimal race where we might miss SIGTERMs when forking off an agent

Before forking, block all signals, and unblock them afterwards. This way
the child will have them blocked, and we won't lose them.
src/shared/util.c