Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
agkyra
Commits
f64fe66c
Commit
f64fe66c
authored
Oct 15, 2015
by
Giorgos Korfiatis
Browse files
fix daemonizing server on Unix
parent
9e6b0066
Changes
2
Hide whitespace changes
Inline
Side-by-side
agkyra/protocol.py
View file @
f64fe66c
...
...
@@ -691,8 +691,12 @@ def launch_server(callback, debug):
command
+=
opts
subprocess
.
Popen
(
command
,
close_fds
=
True
)
else
:
import
daemon
pid
=
os
.
fork
()
if
not
pid
:
command
=
[
callback
,
callback
]
command
+=
opts
os
.
execlp
(
*
command
)
with
daemon
.
DaemonContext
():
command
=
[
callback
,
callback
]
command
+=
opts
os
.
execlp
(
*
command
)
else
:
os
.
wait
()
setup.py
View file @
f64fe66c
...
...
@@ -43,6 +43,9 @@ INSTALL_REQUIRES = [
'certifi'
,
]
if
not
sys
.
platform
.
startswith
(
"win"
):
INSTALL_REQUIRES
.
append
(
"python-daemon"
)
EXTRAS_REQUIRES
=
{
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment