pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/shells/tcsh/patches oops, actually add the patch.
details: https://anonhg.NetBSD.org/pkgsrc/rev/f9fd03616868
branches: trunk
changeset: 609826:f9fd03616868
user: dholland <dholland%pkgsrc.org@localhost>
date: Wed Oct 10 19:19:58 2012 +0000
description:
oops, actually add the patch.
diffstat:
shells/tcsh/patches/patch-sh.c | 24 ++++++++++++++++++++++++
1 files changed, 24 insertions(+), 0 deletions(-)
diffs (28 lines):
diff -r 0b3565317108 -r f9fd03616868 shells/tcsh/patches/patch-sh.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/shells/tcsh/patches/patch-sh.c Wed Oct 10 19:19:58 2012 +0000
@@ -0,0 +1,24 @@
+$NetBSD: patch-sh.c,v 1.1 2012/10/10 19:19:58 dholland Exp $
+
+Avoid calling tcsetpgrp on fd -1; prevents libc diagnostic assertion
+in NetBSD. From christos.
+
+--- sh.c~ 2011-11-29 18:38:54.000000000 +0000
++++ sh.c
+@@ -1215,14 +1215,14 @@ main(int argc, char **argv)
+
+ #ifdef NeXT
+ /* NeXT 2.0 /usr/etc/rlogind, does not set our process group! */
+- if (shpgrp == 0) {
++ if (f != -1 && shpgrp == 0) {
+ shpgrp = getpid();
+ (void) setpgid(0, shpgrp);
+ (void) tcsetpgrp(f, shpgrp);
+ }
+ #endif /* NeXT */
+ #ifdef BSDJOBS /* if we have tty job control */
+- if (grabpgrp(f, shpgrp) != -1) {
++ if (f != -1 && grabpgrp(f, shpgrp) != -1) {
+ /*
+ * Thanks to Matt Day for the POSIX references, and to
+ * Paul Close for the SGI clarification.
Home |
Main Index |
Thread Index |
Old Index