dup() the jobserver fds to 100,101 to make debugging a bit easier.
Now if a process is stuck waiting on one of those fds, it'll be obvious from the strace.
This commit is contained in:
parent
84169c5d27
commit
675a5106d2
1 changed files with 5 additions and 1 deletions
6
jwack.py
6
jwack.py
|
|
@ -70,7 +70,11 @@ def setup(maxjobs):
|
|||
if maxjobs and not _fds:
|
||||
# need to start a new server
|
||||
_toplevel = maxjobs
|
||||
_fds = os.pipe()
|
||||
_fds1 = os.pipe()
|
||||
_fds = (fcntl.fcntl(_fds1[0], fcntl.F_DUPFD, 100),
|
||||
fcntl.fcntl(_fds1[1], fcntl.F_DUPFD, 101))
|
||||
os.close(_fds1[0])
|
||||
os.close(_fds1[1])
|
||||
_release(maxjobs-1)
|
||||
os.putenv('MAKEFLAGS',
|
||||
'%s --jobserver-fds=%d,%d -j' % (os.getenv('MAKEFLAGS'),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue