]> granicus.if.org Git - libevent/commit
test/regress: main/fork: rewrite assertions by just removing event in callback
authorAzat Khuzhin <a3at.mail@gmail.com>
Sat, 26 Dec 2015 23:31:03 +0000 (02:31 +0300)
committerAzat Khuzhin <a3at.mail@gmail.com>
Sun, 27 Dec 2015 06:28:07 +0000 (09:28 +0300)
commit088d8b39f9f72cd83941bcb9bc261fabfd432eb2
tree8feddc8df54ae9581597c2562a654757fa28871c
parent88640aa1ca1d974dd4b301f9c496f417921af69b
test/regress: main/fork: rewrite assertions by just removing event in callback

Instead of assigning some variable value (got_child), and schedule exit from
loop from that callback, just remove event for that signal, and event loop will
exit automatically when there will be no events.
test/regress.c