From: Lennart Poettering Date: Wed, 30 Oct 2019 17:59:44 +0000 (+0100) Subject: man: mention that SIGCHLD has to be blocked before using sd_event_add_child() X-Git-Tag: v245-rc1~315^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b3508072002cad74113934b3f0b8c21599cebfdd;p=thirdparty%2Fsystemd.git man: mention that SIGCHLD has to be blocked before using sd_event_add_child() --- 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