projects
/
qemu-gpiodev
/
libgpiod.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a3ed2e0
)
tests: improve sigprocmask()-related error messages
author
Bartosz Golaszewski
<bartekgola@gmail.com>
Tue, 13 Jun 2017 13:00:29 +0000
(15:00 +0200)
committer
Bartosz Golaszewski
<bartekgola@gmail.com>
Tue, 13 Jun 2017 13:03:02 +0000
(15:03 +0200)
When sigprocmask() fails for how=SIG_BLOCK|SIG_UNBLOCK, say explicitly
we were unable to block/unblock SIGCHLD.
Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
tests/gpiod-test.c
patch
|
blob
|
history
diff --git
a/tests/gpiod-test.c
b/tests/gpiod-test.c
index f7073ebe9b47adc3b4aac4d89ee08d44f5fef37e..53cbc95aa8faa71039de07776e70b99ca2261185 100644
(file)
--- a/
tests/gpiod-test.c
+++ b/
tests/gpiod-test.c
@@
-499,7
+499,7
@@
void test_tool_run(char *tool, ...)
status = sigprocmask(SIG_BLOCK, &sigmask, NULL);
if (status)
- die_perr("unable to
mask signals
");
+ die_perr("unable to
block SIGCHLD
");
proc->sig_fd = signalfd(-1, &sigmask, 0);
if (proc->sig_fd < 0)
@@
-592,7
+592,7
@@
void test_tool_wait(void)
status = sigprocmask(SIG_UNBLOCK, &sigmask, NULL);
if (status)
- die_perr("unable to unblock
signals
");
+ die_perr("unable to unblock
SIGCHLD
");
gpiotool_readall(proc->stdout_fd, &proc->stdout);
gpiotool_readall(proc->stderr_fd, &proc->stderr);