mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
don't try to set the script as the process group. fix #355
Setting gunicorn as the process group prevent exit from the shell.
This commit is contained in:
parent
3ff895d735
commit
5e37c89017
@ -119,12 +119,7 @@ class Application(object):
|
|||||||
debug.spew()
|
debug.spew()
|
||||||
if self.cfg.daemon:
|
if self.cfg.daemon:
|
||||||
util.daemonize()
|
util.daemonize()
|
||||||
else:
|
|
||||||
try:
|
|
||||||
os.setpgrp()
|
|
||||||
except OSError, e:
|
|
||||||
if e[0] != errno.EPERM:
|
|
||||||
raise
|
|
||||||
try:
|
try:
|
||||||
Arbiter(self).run()
|
Arbiter(self).run()
|
||||||
except RuntimeError, e:
|
except RuntimeError, e:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user