launch the pager process in its own process group so that it isn't killed with ctrl+c

This commit is contained in:
Josh Holtrop 2012-06-29 12:28:26 -04:00
parent c08d497127
commit 49656998be

3
jsvn
View File

@ -1387,7 +1387,8 @@ def do_cmd(argv, realsvn, config, expand=True):
pager = os.environ['PAGER']
else:
pager = 'less -FRX'
pager_proc = Popen(pager, shell=True, stdin=PIPE)
pager_proc = Popen(pager, shell=True, stdin=PIPE,
preexec_fn=os.setsid)
out = pager_proc.stdin
using_pager = True