summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib')
-rw-r--r--bitbake/lib/prserv/serv.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/bitbake/lib/prserv/serv.py b/bitbake/lib/prserv/serv.py
index be3acec36a..1d9148b817 100644
--- a/bitbake/lib/prserv/serv.py
+++ b/bitbake/lib/prserv/serv.py
@@ -243,6 +243,7 @@ class PRServer(SimpleXMLRPCServer):
243 try: 243 try:
244 pid = os.fork() 244 pid = os.fork()
245 if pid > 0: 245 if pid > 0:
246 self.socket.close() # avoid ResourceWarning in parent
246 return pid 247 return pid
247 except OSError as e: 248 except OSError as e:
248 raise Exception("%s [%d]" % (e.strerror, e.errno)) 249 raise Exception("%s [%d]" % (e.strerror, e.errno))