From 499067071c5ec70e566c615f6e14d5f0e41b2a66 Mon Sep 17 00:00:00 2001 From: Sheldon Hearn Date: Fri, 9 Jul 1999 11:46:45 +0000 Subject: [PATCH] Use the proctitle to indicate that we're busy wrapping a request for a service. Inetd already uses the process title to indicate that a request for an internal service is being serviced, so this addition is fairly orthogonal. Submitted by: David Malone --- usr.sbin/inetd/inetd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/usr.sbin/inetd/inetd.c b/usr.sbin/inetd/inetd.c index 9d8b7a0f5d0a..3c0537ce4b38 100644 --- a/usr.sbin/inetd/inetd.c +++ b/usr.sbin/inetd/inetd.c @@ -42,7 +42,7 @@ static const char copyright[] = static char sccsid[] = "@(#)from: inetd.c 8.4 (Berkeley) 4/13/94"; #endif static const char rcsid[] = - "$Id: inetd.c,v 1.57 1999/07/02 16:21:13 sheldonh Exp $"; + "$Id: inetd.c,v 1.58 1999/07/09 11:18:59 sheldonh Exp $"; #endif /* not lint */ /* @@ -275,6 +275,7 @@ char *sskip __P((char **)); char *skip __P((char **)); struct servtab *tcpmux __P((int)); int cpmip __P((struct servtab *, int)); +void inetd_setproctitle __P((char *, int)); void unregisterrpc __P((register struct servtab *sep)); @@ -631,6 +632,7 @@ main(argc, argv, envp) } } if (ISWRAP(sep)) { + inetd_setproctitle("wrapping", ctrl); service = sep->se_server_name ? sep->se_server_name : sep->se_service; request_init(&req, RQ_DAEMON, service, RQ_FILE, ctrl, NULL);