public inbox for gentoo-catalyst@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-catalyst] [patch] Remove unused variable new and an undefined variable s.
@ 2013-02-27  9:23 Brian Dolbec
  0 siblings, 0 replies; only message in thread
From: Brian Dolbec @ 2013-02-27  9:23 UTC (permalink / raw
  To: gentoo-catalyst

again, this will need to be manually apllied to master

=====================================================


diff --git a/catalyst/support.py b/catalyst/support.py
index 0ddf98d..2133799 100644
@@ -433,15 +433,7 @@ def spawn(mycommand,env={},raw_exit_code=False,opt_name=None,fd_pipes=None,retur
 				if trg_fd[x] == src_fd[x]:
 					continue
 				if trg_fd[x] in src_fd[x+1:]:
-					new=os.dup2(trg_fd[x],max(src_fd) + 1)
 					os.close(trg_fd[x])
-					try:
-						while True:
-							src_fd[s.index(trg_fd[x])]=new
-					except SystemExit, e:
-						raise
-					except:
-						pass
 
 			# transfer the fds to their final pre-exec position.
 			for x in range(0,len(trg_fd)):


-- 
Brian Dolbec <dolsen@gentoo.org>



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-02-27  9:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-27  9:23 [gentoo-catalyst] [patch] Remove unused variable new and an undefined variable s Brian Dolbec

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox