Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/inetd no need for inetd_dummy variable. from openbsd



details:   https://anonhg.NetBSD.org/src/rev/e1b62e75638e
branches:  trunk
changeset: 532144:e1b62e75638e
user:      itojun <itojun%NetBSD.org@localhost>
date:      Sat Jun 01 03:41:33 2002 +0000

description:
no need for inetd_dummy variable.  from openbsd

diffstat:

 usr.sbin/inetd/inetd.c |  15 ++-------------
 1 files changed, 2 insertions(+), 13 deletions(-)

diffs (36 lines):

diff -r 168013f748c2 -r e1b62e75638e usr.sbin/inetd/inetd.c
--- a/usr.sbin/inetd/inetd.c    Sat Jun 01 00:32:41 2002 +0000
+++ b/usr.sbin/inetd/inetd.c    Sat Jun 01 03:41:33 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: inetd.c,v 1.80 2002/06/01 00:32:41 itojun Exp $        */
+/*     $NetBSD: inetd.c,v 1.81 2002/06/01 03:41:33 itojun Exp $        */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -77,7 +77,7 @@
 #if 0
 static char sccsid[] = "@(#)inetd.c    8.4 (Berkeley) 4/13/94";
 #else
-__RCSID("$NetBSD: inetd.c,v 1.80 2002/06/01 00:32:41 itojun Exp $");
+__RCSID("$NetBSD: inetd.c,v 1.81 2002/06/01 03:41:33 itojun Exp $");
 #endif
 #endif /* not lint */
 
@@ -502,17 +502,6 @@
        sv.sv_handler = SIG_IGN;
        sigvec(SIGPIPE, &sv, (struct sigvec *)0);
 
-       {
-               /* space for daemons to overwrite environment for ps */
-#define        DUMMYSIZE       100
-               char dummy[DUMMYSIZE];
-
-               (void)memset(dummy, 'x', DUMMYSIZE - 1);
-               dummy[DUMMYSIZE - 1] = '\0';
-
-               (void)setenv("inetd_dummy", dummy, 1);
-       }
-
        for (;;) {
                int n, ctrl;
                fd_set readable;



Home | Main Index | Thread Index | Old Index