mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-08 12:01:21 +02:00
33982: minimal support for pid namespaces by recognizing that GETPGRP() may return 0
This commit is contained in:
parent
36ec763dbd
commit
0c4cb0cc1b
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2014-12-16 Barton E. Schaefer <schaefer@brasslantern.com>
|
||||
|
||||
* Chirantan Ekbote: 33982: Src/jobs.c: minimal support for pid
|
||||
namespaces by recognizing that GETPGRP() may return 0
|
||||
|
||||
2014-12-15 Barton E. Schaefer <schaefer@zsh.org>
|
||||
|
||||
* 33976: Src/subst.c: fix overlapping strcpy()
|
||||
|
|
|
@ -2734,7 +2734,7 @@ acquire_pgrp(void)
|
|||
long ttpgrp;
|
||||
sigset_t blockset, oldset;
|
||||
|
||||
if ((mypgrp = GETPGRP()) > 0) {
|
||||
if ((mypgrp = GETPGRP()) >= 0) {
|
||||
long lastpgrp = mypgrp;
|
||||
sigemptyset(&blockset);
|
||||
sigaddset(&blockset, SIGTTIN);
|
||||
|
|
Loading…
Reference in a new issue