We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d697b3 commit 2cf8b6aCopy full SHA for 2cf8b6a
supervisor/process.py
@@ -739,7 +739,14 @@ def spawn(self):
739
"""
740
Overrides Subprocess.spawn() so we can hook in before it happens
741
742
- self.before_spawn()
+ try:
743
+ self.before_spawn()
744
+ except BaseException as e:
745
+ self.record_spawnerr('Could not create FastCGI socket %s: %s' % (
746
+ self.group.socket_manager.config(), e))
747
+ self.change_state(ProcessStates.BACKOFF)
748
+ self.give_up()
749
+ return
750
pid = Subprocess.spawn(self)
751
if pid is None:
752
#Remove object reference to decrement the reference count on error
0 commit comments