diff options
author | sheldonh <sheldonh@FreeBSD.org> | 1999-07-09 11:46:45 +0000 |
---|---|---|
committer | sheldonh <sheldonh@FreeBSD.org> | 1999-07-09 11:46:45 +0000 |
commit | d6c7df715cfcc26e776c016a42cb4b70185bf721 (patch) | |
tree | b7be0faaf609da33fc072d4579a57a633f665334 /usr.sbin | |
parent | 37c066a7ad337b86b969269c3392c9942dd7c22e (diff) | |
download | FreeBSD-src-d6c7df715cfcc26e776c016a42cb4b70185bf721.zip FreeBSD-src-d6c7df715cfcc26e776c016a42cb4b70185bf721.tar.gz |
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 <dwmalone@maths.tcd.ie>
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/inetd/inetd.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/inetd/inetd.c b/usr.sbin/inetd/inetd.c index 9d8b7a0..3c0537c 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); |