1
0
Fork 0
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:
Chirantan Ekbote 2014-12-16 23:35:57 -08:00 committed by Barton E. Schaefer
parent 36ec763dbd
commit 0c4cb0cc1b
2 changed files with 6 additions and 1 deletions

View file

@ -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()

View file

@ -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);