We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d837d36 commit afa20a6Copy full SHA for afa20a6
tcpdns.py
@@ -223,10 +223,8 @@ def main():
223
print '>> Enable Cache: %r' % (options.cache)
224
print '>> Now you can set dns server to 127.0.0.1'
225
226
- os_name = os.name
227
-
228
if options.daemon:
229
- if os_name == 'nt':
+ if os.name == 'nt':
230
raise Exception("Windows doesn't support daemon process")
231
else:
232
try:
@@ -236,7 +234,7 @@ def main():
236
234
print '*** Please install python-daemon'
237
235
238
239
- with daemon.DaemonContext():
+ with daemon.DaemonContext(detach_process=True):
240
main()
241
except:
242
0 commit comments