tevent: Remove the signal pipe if no signal events are around
commit066a642f10cae7980eefb2d8ada3a6c3f5220542
authorVolker Lendecke <vl@samba.org>
Wed, 31 Jul 2013 09:31:57 +0000 (31 11:31 +0200)
committerStefan Metzmacher <metze@samba.org>
Thu, 1 Aug 2013 11:15:38 +0000 (1 13:15 +0200)
tree5d7f9138435bfb39144bf02075456c5ffd6d166b
parentf9d19c459f01d6e316a4a74a900c69424962eae0
tevent: Remove the signal pipe if no signal events are around

It makes adding/removing the first/last sigevents a bit more expensive, but it
will fix tevent_loop_wait not finishing when one signal event was added and
removed.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=10012

Signed-off-by: Volker Lendecke <vl@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
lib/tevent/tevent_signal.c