Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 104705 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/lib/portage/pym/portage_exec.py (-4 / +2 lines)
Lines 177-185 def spawn(mycommand,env={},opt_name=None Link Here
177
		spawned_pids.append(mypid[-1])
177
		spawned_pids.append(mypid[-1])
178
		return mypid
178
		return mypid
179
	while len(mypid):
179
	while len(mypid):
180
		retval=os.waitpid(mypid[-1],0)[1]
180
		retval=os.waitpid(mypid.pop(0),0)[1]
181
		if retval != 0:
181
		if retval != 0:
182
			for x in mypid[0:-1]:
182
			for x in mypid:
183
				try:
183
				try:
184
					os.kill(x,signal.SIGTERM)
184
					os.kill(x,signal.SIGTERM)
185
					if os.waitpid(x,os.WNOHANG)[1] == 0:
185
					if os.waitpid(x,os.WNOHANG)[1] == 0:
Lines 197-204 def spawn(mycommand,env={},opt_name=None Link Here
197
				return (retval >> 8) # return exit code
197
				return (retval >> 8) # return exit code
198
			else:
198
			else:
199
				return ((retval & 0xff) << 8) # interrupted by signal
199
				return ((retval & 0xff) << 8) # interrupted by signal
200
		else:
201
			mypid.pop(-1)
202
	return 0
200
	return 0
203
201
204
def find_binary(myc):
202
def find_binary(myc):

Return to bug 104705