From 83e3b29c2e6b59469615c414222deeb308a9e775 Mon Sep 17 00:00:00 2001 From: christos Date: Wed, 18 Dec 2002 15:31:21 +0000 Subject: keep stdout open so that utmp_update [the kernel] does not bitch --- x11/rxvt/distinfo | 3 ++- x11/rxvt/patches/patch-ah | 19 +++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 x11/rxvt/patches/patch-ah (limited to 'x11') diff --git a/x11/rxvt/distinfo b/x11/rxvt/distinfo index c6aa4c48cbb..6ab516d08f3 100644 --- a/x11/rxvt/distinfo +++ b/x11/rxvt/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.7 2002/10/26 18:02:16 bouyer Exp $ +$NetBSD: distinfo,v 1.8 2002/12/18 15:31:21 christos Exp $ SHA1 (rxvt-2.7.3.tar.bz2) = 1f5380ba70d1b795e6532a79b1e2d7371505b504 Size (rxvt-2.7.3.tar.bz2) = 266784 bytes @@ -9,3 +9,4 @@ SHA1 (patch-ad) = 86047c69fa397d71f3e71ae476bd7addd153729f SHA1 (patch-ae) = ce0bd392cde7c436834f68391e0d38b53f1755cc SHA1 (patch-af) = 4974d45d51e1d8a5b5ee86e690c8dd0ca1c8ed35 SHA1 (patch-ag) = 132922885b899dff22a964b1bb491ac25b6e17b8 +SHA1 (patch-ah) = 909dbe0b6dcc0a2fde44f1b174f9af07e78d480e diff --git a/x11/rxvt/patches/patch-ah b/x11/rxvt/patches/patch-ah new file mode 100644 index 00000000000..da7d2119f41 --- /dev/null +++ b/x11/rxvt/patches/patch-ah @@ -0,0 +1,19 @@ +$NetBSD: patch-ah,v 1.5 2002/12/18 15:31:22 christos Exp $ + +--- src/init.c.orig Sun Mar 26 02:47:01 2000 ++++ src/init.c Wed Dec 18 10:29:05 2002 +@@ -895,9 +895,13 @@ + /* + * Close all unused file descriptors. + * We don't want them, we don't need them. ++ * We keep stdout/stderr, and we will re-open stdin, because ++ * we want 0,1,2 open so that when pututxline() calls utmp_update ++ * which is set{u,g}id() the kernel does not complain. + */ + for (i = 0; i < num_fds; i++) { +- if (i == STDERR_FILENO || i == cfd || i == tty_fd || i == Xfd) ++ if (i == STDOUT_FILENO || i == STDERR_FILENO ++ || i == cfd || i == tty_fd || i == Xfd) + continue; + close(i); + } -- cgit v1.2.3