[Python-checkins] cpython (merge 3.2 -> 3.2): merge 3.2 heads

gregory.p.smith python-checkins at python.org
Tue Mar 15 20:53:05 CET 2011


http://hg.python.org/cpython/rev/ee5262466b9f
changeset:   68529:ee5262466b9f
branch:      3.2
parent:      68527:8c79e3abdb31
parent:      68522:f3ae657067ef
user:        Gregory P. Smith <greg at krypto.org>
date:        Tue Mar 15 15:52:09 2011 -0400
summary:
  merge 3.2 heads

files:
  

diff --git a/Lib/webbrowser.py b/Lib/webbrowser.py
--- a/Lib/webbrowser.py
+++ b/Lib/webbrowser.py
@@ -228,15 +228,9 @@
         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.

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list