mirror of
https://git.yoctoproject.org/poky
synced 2026-06-02 13:29:49 +00:00
bitbake: process: log odd unlink events with bitbake.sock
Log when the socket file already exists and is removed before recreating a new socket. Log when unlinking the socket file failed. (Bitbake rev: cfd7c9899f988bab6d9fe7bbfbdb60603fb5ed34) Signed-off-by: Frank de Brabander <debrabander@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
caed08fe89
commit
3c6753d03d
@@ -278,8 +278,8 @@ class ProcessServer():
|
|||||||
# Remove the socket file so we don't get any more connections to avoid races
|
# Remove the socket file so we don't get any more connections to avoid races
|
||||||
try:
|
try:
|
||||||
os.unlink(self.sockname)
|
os.unlink(self.sockname)
|
||||||
except:
|
except Exception as err:
|
||||||
pass
|
serverlog("Removing socket file '%s' failed (%s)" % (self.sockname, err))
|
||||||
self.sock.close()
|
self.sock.close()
|
||||||
|
|
||||||
try:
|
try:
|
||||||
@@ -543,6 +543,7 @@ def execServer(lockfd, readypipeinfd, lockname, sockname, server_timeout, xmlrpc
|
|||||||
|
|
||||||
# Create server control socket
|
# Create server control socket
|
||||||
if os.path.exists(sockname):
|
if os.path.exists(sockname):
|
||||||
|
serverlog("WARNING: removing existing socket file '%s'" % sockname)
|
||||||
os.unlink(sockname)
|
os.unlink(sockname)
|
||||||
|
|
||||||
sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
|
sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
|
||||||
|
|||||||
Reference in New Issue
Block a user