summary refs log tree commit diff
path: root/Src/jobs.c
diff options
context:
space:
mode:
authorChirantan Ekbote <chirantan@google.com>2014-12-16 23:35:57 -0800
committerBarton E. Schaefer <schaefer@zsh.org>2014-12-16 23:35:57 -0800
commit0c4cb0cc1b527f4341f1a39a10f4120aa7c7d594 (patch)
treeab4b72a4528336a1f07fee3070fc4f3bfb43a6db /Src/jobs.c
parent36ec763dbd4e30b614f491482b77fd4e0507fe85 (diff)
downloadzsh-0c4cb0cc1b527f4341f1a39a10f4120aa7c7d594.tar.gz
zsh-0c4cb0cc1b527f4341f1a39a10f4120aa7c7d594.tar.xz
zsh-0c4cb0cc1b527f4341f1a39a10f4120aa7c7d594.zip
33982: minimal support for pid namespaces by recognizing that GETPGRP() may return 0
Diffstat (limited to 'Src/jobs.c')
-rw-r--r--Src/jobs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/jobs.c b/Src/jobs.c
index a668b07e6..8c4254ad1 100644
--- a/Src/jobs.c
+++ b/Src/jobs.c
@@ -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);