projects
/
adu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
666df5b
)
Also catch SIGPIPE.
author
Andre Noll
<maan@systemlinux.org>
Sun, 1 Jun 2008 16:43:39 +0000
(18:43 +0200)
committer
Andre Noll
<maan@systemlinux.org>
Sun, 1 Jun 2008 16:43:39 +0000
(18:43 +0200)
Otherwise, "adu -S | invalid_command" kills the adu process and
we're left with dirty osl tables.
adu.c
patch
|
blob
|
history
diff --git
a/adu.c
b/adu.c
index 821ce26fdd8bcd1e632171eb4c24dbe77aef105f..3fca7a089a8d06d55f94602b3333a7ea442034cb 100644
(file)
--- a/
adu.c
+++ b/
adu.c
@@
-372,6
+372,8
@@
static int init_signals(void)
return -E_SIGNAL_SIG_ERR;
if (signal(SIGTERM, &signal_handler) == SIG_ERR)
return -E_SIGNAL_SIG_ERR;
+ if (signal(SIGPIPE, &signal_handler) == SIG_ERR)
+ return -E_SIGNAL_SIG_ERR;
return 1;
}