From a9c34394bc6e8b575437fc8ecbef402028cdd0be Mon Sep 17 00:00:00 2001 From: Davin McCall Date: Thu, 23 Jun 2016 11:33:30 +0100 Subject: [PATCH] Ignore SIGPIPE to prevent sudden exit when control socket is closed --- src/dinit.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/dinit.cc b/src/dinit.cc index eaea6f5..3ee5a62 100644 --- 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) { -- 2.25.1