projects
/
oweals
/
dinit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f81a475
)
Ignore SIGPIPE to prevent sudden exit when control socket is closed
author
Davin McCall
<davmac@davmac.org>
Thu, 23 Jun 2016 10:33:30 +0000
(11:33 +0100)
committer
Davin McCall
<davmac@davmac.org>
Thu, 23 Jun 2016 10:33:30 +0000
(11:33 +0100)
src/dinit.cc
patch
|
blob
|
history
diff --git
a/src/dinit.cc
b/src/dinit.cc
index eaea6f52ba771182a2596027efda4c454514315f..3ee5a62bbf76fea5c4424eabb3083690b4bb060c 100644
(file)
--- a/
src/dinit.cc
+++ b/
src/dinit.cc
@@
-250,6
+250,8
@@
int main(int argc, char **argv)
signal(SIGTTIN, SIG_IGN);
signal(SIGTTOU, SIG_IGN);
+ signal(SIGPIPE, SIG_IGN);
+
if (! am_system_init && ! control_socket_path_set) {
const char * userhome = get_user_home();
if (userhome != nullptr) {