summaryrefslogtreecommitdiffstats
path: root/init/sigchld_handler.h
diff options
context:
space:
mode:
authorRyan Prichard <rprichard@google.com>2018-04-11 18:46:38 -0700
committerRyan Prichard <rprichard@google.com>2018-04-12 14:15:26 -0700
commit1325ec8cfb85806867b6e88aa2c63f3d183a3353 (patch)
tree9a5797679ec99b4c125526ac3e05c871f4d6c930 /init/sigchld_handler.h
parentaf15fbf9aa6bb991a6abe8b2b72acc1a9405eff9 (diff)
downloadsystem_core-1325ec8cfb85806867b6e88aa2c63f3d183a3353.tar.gz
system_core-1325ec8cfb85806867b6e88aa2c63f3d183a3353.tar.bz2
system_core-1325ec8cfb85806867b6e88aa2c63f3d183a3353.zip
init: use signalfd to catch SIGCHLD
Previously, if init received too many SIGCHLD signals, then the write to signal_write_fd could fail with EAGAIN. The handler tried to log the EAGAIN error, and init deadlocked if the interrupted init process had already acquired a logging-related lock. Bug: b/77867680 Test: manual Change-Id: Ief0b5e94d8517827a5a7d03773391ba3ba9447c4
Diffstat (limited to 'init/sigchld_handler.h')
-rw-r--r--init/sigchld_handler.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/init/sigchld_handler.h b/init/sigchld_handler.h
index c86dc8dd4..30063f2c7 100644
--- a/init/sigchld_handler.h
+++ b/init/sigchld_handler.h
@@ -22,8 +22,6 @@ namespace init {
void ReapAnyOutstandingChildren();
-void sigchld_handler_init(void);
-
} // namespace init
} // namespace android