diff options
author | Gregory P. Smith <greg@krypto.org> | 2011-03-15 19:52:09 (GMT) |
---|---|---|
committer | Gregory P. Smith <greg@krypto.org> | 2011-03-15 19:52:09 (GMT) |
commit | cdc4f963cc6196d0b00985f6d5d980fab25c5a98 (patch) | |
tree | 7205183b22c6ecdb440c767bf90f4f5692d2f0af | |
parent | 961e0e85c007677ba4406382d6951a39487d440c (diff) | |
parent | 8f7724f9a4ec57d689a436a064e2e047b2ad0d97 (diff) | |
download | cpython-cdc4f963cc6196d0b00985f6d5d980fab25c5a98.zip cpython-cdc4f963cc6196d0b00985f6d5d980fab25c5a98.tar.gz cpython-cdc4f963cc6196d0b00985f6d5d980fab25c5a98.tar.bz2 |
merge 3.2 heads
-rw-r--r-- | Lib/webbrowser.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/Lib/webbrowser.py b/Lib/webbrowser.py index e369acb..415f12a 100644 --- a/Lib/webbrowser.py +++ b/Lib/webbrowser.py @@ -228,15 +228,9 @@ class UnixBrowser(BaseBrowser): else: # for TTY browsers, we need stdin/out inout = None - # if possible, put browser in separate process group, so - # keyboard interrupts don't affect browser as well as Python - setsid = getattr(os, 'setsid', None) - if not setsid: - setsid = getattr(os, 'setpgrp', None) - p = subprocess.Popen(cmdline, close_fds=True, stdin=inout, stdout=(self.redirect_stdout and inout or None), - stderr=inout, preexec_fn=setsid) + stderr=inout, start_new_session=True) if remote: # wait five secons. If the subprocess is not finished, the # remote invocation has (hopefully) started a new instance. |