daemon.py: petit debug
This commit is contained in:
parent
e0a0fb60c8
commit
796caf2546
1 changed files with 4 additions and 0 deletions
|
@ -22,7 +22,11 @@ def run():
|
||||||
conn.close()
|
conn.close()
|
||||||
# fork en arrière plan + pidfile
|
# fork en arrière plan + pidfile
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
if '-fg' in sys.argv:
|
||||||
|
run()
|
||||||
|
exit()
|
||||||
# do the UNIX double-fork magic, see Stevens' "Advanced
|
# do the UNIX double-fork magic, see Stevens' "Advanced
|
||||||
# Programming in the UNIX Environment" for details (ISBN 0201563177)
|
# Programming in the UNIX Environment" for details (ISBN 0201563177)
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue