issue #70: remove redundant 'raise SystemExit'

Either execvp succeeds, in which case the process image is replaced, or
execvp throws an exception, in which case control flow exits the frame
anyway.
pull/79/head
David Wilson 7 years ago
parent 43fae4414a
commit e88f9a521f

@ -107,7 +107,6 @@ def create_child(*args):
childfp.close()
parentfp.close()
os.execvp(args[0], args)
raise SystemExit
childfp.close()
LOG.debug('create_child() child %d fd %d, parent %d, cmd: %s',
@ -170,7 +169,6 @@ def tty_create_child(*args):
os.setsid()
os.close(os.open(os.ttyname(1), os.O_RDWR))
os.execvp(args[0], args)
raise SystemExit
os.close(slave_fd)
LOG.debug('tty_create_child() child %d fd %d, parent %d, cmd: %s',

Loading…
Cancel
Save