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>
This commit is contained in:
Sheldon Hearn 1999-07-09 11:46:45 +00:00
parent 10d03f50ad
commit 499067071c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=48698

View File

@ -42,7 +42,7 @@ static const char copyright[] =
static char sccsid[] = "@(#)from: inetd.c 8.4 (Berkeley) 4/13/94"; static char sccsid[] = "@(#)from: inetd.c 8.4 (Berkeley) 4/13/94";
#endif #endif
static const char rcsid[] = 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 */ #endif /* not lint */
/* /*
@ -275,6 +275,7 @@ char *sskip __P((char **));
char *skip __P((char **)); char *skip __P((char **));
struct servtab *tcpmux __P((int)); struct servtab *tcpmux __P((int));
int cpmip __P((struct servtab *, int)); int cpmip __P((struct servtab *, int));
void inetd_setproctitle __P((char *, int));
void unregisterrpc __P((register struct servtab *sep)); void unregisterrpc __P((register struct servtab *sep));
@ -631,6 +632,7 @@ main(argc, argv, envp)
} }
} }
if (ISWRAP(sep)) { if (ISWRAP(sep)) {
inetd_setproctitle("wrapping", ctrl);
service = sep->se_server_name ? service = sep->se_server_name ?
sep->se_server_name : sep->se_service; sep->se_server_name : sep->se_service;
request_init(&req, RQ_DAEMON, service, RQ_FILE, ctrl, NULL); request_init(&req, RQ_DAEMON, service, RQ_FILE, ctrl, NULL);