mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
we aren't the leader all the time.
This commit is contained in:
parent
fc96d45838
commit
f29c610916
@ -111,10 +111,8 @@ class Application(object):
|
|||||||
try:
|
try:
|
||||||
os.setpgrp()
|
os.setpgrp()
|
||||||
except OSError, e:
|
except OSError, e:
|
||||||
if e[0] == errno.EPERM:
|
if e[0] != errno.EPERM:
|
||||||
sys.stderr.write("Error: You should use "
|
raise
|
||||||
"daemon mode here.\n")
|
|
||||||
raise
|
|
||||||
|
|
||||||
self.configure_logging()
|
self.configure_logging()
|
||||||
try:
|
try:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user