launch the pager process in its own process group so that it isn't killed with ctrl+c
This commit is contained in:
parent
c08d497127
commit
49656998be
3
jsvn
3
jsvn
@ -1387,7 +1387,8 @@ def do_cmd(argv, realsvn, config, expand=True):
|
|||||||
pager = os.environ['PAGER']
|
pager = os.environ['PAGER']
|
||||||
else:
|
else:
|
||||||
pager = 'less -FRX'
|
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
|
out = pager_proc.stdin
|
||||||
using_pager = True
|
using_pager = True
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user