mirror of
https://github.com/certbot/certbot.git
synced 2026-08-01 08:08:00 +02:00
Add missing return statements in start_listener()
This commit is contained in:
@@ -197,11 +197,15 @@ class StandaloneAuthenticator(object):
|
|||||||
if fork_result:
|
if fork_result:
|
||||||
# PARENT process (still the Let's Encrypt client process)
|
# PARENT process (still the Let's Encrypt client process)
|
||||||
self.child_pid = fork_result
|
self.child_pid = fork_result
|
||||||
self.do_parent_process(port)
|
# do_parent_process() can return True or False to indicate
|
||||||
|
# reported success or failure creating the listener.
|
||||||
|
return self.do_parent_process(port)
|
||||||
else:
|
else:
|
||||||
# CHILD process (the TCP listener subprocess)
|
# CHILD process (the TCP listener subprocess)
|
||||||
self.child_pid = os.getpid()
|
self.child_pid = os.getpid()
|
||||||
self.do_child_process(port, key)
|
# do_child_process() is normally not expected to return but
|
||||||
|
# should terminate via sys.exit().
|
||||||
|
return self.do_child_process(port, key)
|
||||||
|
|
||||||
# IAuthenticator method implementations follow
|
# IAuthenticator method implementations follow
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user