Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/portmap In callit() and logit(), set a slightly inf...



details:   https://anonhg.NetBSD.org/src/rev/d11b83b8dbb3
branches:  trunk
changeset: 481377:d11b83b8dbb3
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Thu Jan 27 16:28:32 2000 +0000

description:
In callit() and logit(), set a slightly informative proctitle to make
it easier to determine where large numbers of wedged portmap processes
are coming from.

diffstat:

 usr.sbin/portmap/portmap.c |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (37 lines):

diff -r e216eccaaa48 -r d11b83b8dbb3 usr.sbin/portmap/portmap.c
--- a/usr.sbin/portmap/portmap.c        Thu Jan 27 15:41:19 2000 +0000
+++ b/usr.sbin/portmap/portmap.c        Thu Jan 27 16:28:32 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: portmap.c,v 1.22 2000/01/23 15:54:31 drochner Exp $    */
+/*     $NetBSD: portmap.c,v 1.23 2000/01/27 16:28:32 thorpej Exp $     */
 
 /*-
  * Copyright (c) 1990, 1993
@@ -44,7 +44,7 @@
 #if 0
 static char sccsid[] = "@(#)portmap.c  8.1 (Berkeley) 6/6/93";
 #else
-__RCSID("$NetBSD: portmap.c,v 1.22 2000/01/23 15:54:31 drochner Exp $");
+__RCSID("$NetBSD: portmap.c,v 1.23 2000/01/27 16:28:32 thorpej Exp $");
 #endif
 #endif /* not lint */
 
@@ -629,6 +629,9 @@
                            a.rmt_prog);
                return;
        }
+
+       setproctitle("callit: %s", inet_ntoa(svc_getcaller(xprt)->sin_addr));
+
        port = pml->pml_map.pm_port;
        get_myaddress(&me);
        me.sin_port = htons(port);
@@ -746,6 +749,8 @@
 
     if (fork() == 0) {
 
+       setproctitle("logit");
+
         /* Try to map program number to name. */
 
         if (prognum == 0) {



Home | Main Index | Thread Index | Old Index