From b3508072002cad74113934b3f0b8c21599cebfdd Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 30 Oct 2019 18:59:44 +0100 Subject: [PATCH] man: mention that SIGCHLD has to be blocked before using sd_event_add_child() --- man/sd_event_add_child.xml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/man/sd_event_add_child.xml b/man/sd_event_add_child.xml index 509803d5c17..c146e3121ba 100644 --- a/man/sd_event_add_child.xml +++ b/man/sd_event_add_child.xml @@ -100,6 +100,12 @@ SD_EVENT_OFF with sd_event_source_set_enabled3. + The SIGCHLD signal must be blocked in all threads before this function is + called (using sigprocmask2 or + pthread_sigmask3). + If the second parameter of sd_event_add_child() is passed as NULL no reference to the event source object is returned. In this case the @@ -165,8 +171,8 @@ -EBUSY - A handler is already installed for this - child process. + A handler is already installed for this child process, or + SIGCHLD is not blocked. @@ -214,7 +220,9 @@ sd_event_source_set_userdata3, sd_event_source_set_description3, sd_event_source_set_floating3, - waitid2 + waitid2, + sigprocmask2, + pthread_sigmask3 -- 2.47.3