Skip to content

Commit bbdc919

Browse files
committed
Merge pull request #736 from shichao-an/master
Fix typo: SIGCHILD => SIGCHLD
2 parents c28db88 + 01196db commit bbdc919

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

docs/configuration.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -765,10 +765,10 @@ where specified.
765765

766766
``stopwaitsecs``
767767

768-
The number of seconds to wait for the OS to return a SIGCHILD to
768+
The number of seconds to wait for the OS to return a SIGCHLD to
769769
:program:`supervisord` after the program has been sent a stopsignal.
770770
If this number of seconds elapses before :program:`supervisord`
771-
receives a SIGCHILD from the process, :program:`supervisord` will
771+
receives a SIGCHLD from the process, :program:`supervisord` will
772772
attempt to kill it with a final SIGKILL.
773773

774774
*Default*: 10

supervisor/options.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1328,10 +1328,10 @@ def dropPrivileges(self, user):
13281328
os.setuid(uid)
13291329

13301330
def waitpid(self):
1331-
# Need pthread_sigmask here to avoid concurrent sigchild, but Python
1331+
# Need pthread_sigmask here to avoid concurrent sigchld, but Python
13321332
# doesn't offer in Python < 3.4. There is still a race condition here;
1333-
# we can get a sigchild while we're sitting in the waitpid call.
1334-
# However, AFAICT, if waitpid is interrupted bu SIGCHILD, as long as we
1333+
# we can get a sigchld while we're sitting in the waitpid call.
1334+
# However, AFAICT, if waitpid is interrupted by SIGCHLD, as long as we
13351335
# call waitpid again (which happens every so often during the normal
13361336
# course in the mainloop), we'll eventually reap the child that we
13371337
# tried to reap during the interrupted call. At least on Linux, this

0 commit comments

Comments
 (0)