tests: read siginfo after receiving SIGCHLD
authorBartosz Golaszewski <bartekgola@gmail.com>
Mon, 12 Jun 2017 20:25:09 +0000 (22:25 +0200)
committerBartosz Golaszewski <bartekgola@gmail.com>
Mon, 12 Jun 2017 20:25:09 +0000 (22:25 +0200)
commitf48aa23289e03196907011af6622d7d97a24dbd6
tree71f8beb733171684ca13f3bab53fd51904a5f5c2
parentfe47480f954799b00d5c6e5a2c9ef83d8cd9da40
tests: read siginfo after receiving SIGCHLD

If we don't actually read the signal info, the signals pile up after
every child process exits even if we close the sigfd.

Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
tests/gpiod-test.c