|
|
@ -25,7 +25,7 @@ import traceback |
|
|
|
import json |
|
|
|
import Queue |
|
|
|
from network import Network |
|
|
|
from util import print_msg |
|
|
|
from util import print_msg, print_stderr |
|
|
|
from simple_config import SimpleConfig |
|
|
|
|
|
|
|
|
|
|
@ -60,7 +60,7 @@ class NetworkProxy(threading.Thread): |
|
|
|
return False |
|
|
|
|
|
|
|
elif not daemon_started: |
|
|
|
print "Starting daemon [%s]"%self.config.get('server') |
|
|
|
print_stderr( "Starting daemon [%s]"%self.config.get('server')) |
|
|
|
daemon_started = True |
|
|
|
pid = os.fork() |
|
|
|
if (pid == 0): # The first child. |
|
|
|