summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/prserv
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/prserv')
-rw-r--r--bitbake/lib/prserv/serv.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bitbake/lib/prserv/serv.py b/bitbake/lib/prserv/serv.py
index ecafe4f94d..2f488f4898 100644
--- a/bitbake/lib/prserv/serv.py
+++ b/bitbake/lib/prserv/serv.py
@@ -88,7 +88,7 @@ class PRServer(SimpleXMLRPCServer):
88 pid = os.fork() 88 pid = os.fork()
89 if pid > 0: 89 if pid > 0:
90 sys.exit(0) 90 sys.exit(0)
91 except OSError,e: 91 except OSError as e:
92 sys.stderr.write("1st fork failed: %d %s\n" % (e.errno, e.strerror)) 92 sys.stderr.write("1st fork failed: %d %s\n" % (e.errno, e.strerror))
93 sys.exit(1) 93 sys.exit(1)
94 94
@@ -101,7 +101,7 @@ class PRServer(SimpleXMLRPCServer):
101 pid = os.fork() 101 pid = os.fork()
102 if pid > 0: #parent 102 if pid > 0: #parent
103 sys.exit(0) 103 sys.exit(0)
104 except OSError,e: 104 except OSError as e:
105 sys.stderr.write("2nd fork failed: %d %s\n" % (e.errno, e.strerror)) 105 sys.stderr.write("2nd fork failed: %d %s\n" % (e.errno, e.strerror))
106 sys.exit(1) 106 sys.exit(1)
107 107
@@ -187,7 +187,7 @@ def stop_daemon():
187 while 1: 187 while 1:
188 os.kill(pid,signal.SIGTERM) 188 os.kill(pid,signal.SIGTERM)
189 time.sleep(0.1) 189 time.sleep(0.1)
190 except OSError, err: 190 except OSError as err:
191 err = str(err) 191 err = str(err)
192 if err.find("No such process") > 0: 192 if err.find("No such process") > 0:
193 if os.path.exists(PRServer.pidfile): 193 if os.path.exists(PRServer.pidfile):