mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
close issue #66. Display a more explicit error message and raise.
This commit is contained in:
parent
46e8002ffc
commit
5d9de13b59
@ -107,7 +107,14 @@ class Application(object):
|
||||
if self.cfg.daemon:
|
||||
util.daemonize()
|
||||
else:
|
||||
os.setpgrp()
|
||||
try:
|
||||
os.setpgrp()
|
||||
except OSError, e:
|
||||
if e[0] == errno.EPERM:
|
||||
sys.stderr.write("Error: You should use "
|
||||
"daemon mode here.\n")
|
||||
raise
|
||||
|
||||
self.configure_logging()
|
||||
Arbiter(self).run()
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user