use setproctitle() instead of uppercasing ProgramName
this makes the ps display nicer, and also avoids uppercasing the cron program name in logs idea from FreeBSD
This commit is contained in:
parent
103c8a5c49
commit
d70973544d
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: do_command.c,v 1.13 2003/03/14 21:56:07 christos Exp $ */
|
||||
/* $NetBSD: do_command.c,v 1.14 2003/04/10 14:14:15 jdolecek Exp $ */
|
||||
|
||||
/* Copyright 1988,1990,1993,1994 by Paul Vixie
|
||||
* All rights reserved
|
||||
@ -22,7 +22,7 @@
|
||||
#if 0
|
||||
static char rcsid[] = "Id: do_command.c,v 2.12 1994/01/15 20:43:43 vixie Exp ";
|
||||
#else
|
||||
__RCSID("$NetBSD: do_command.c,v 1.13 2003/03/14 21:56:07 christos Exp $");
|
||||
__RCSID("$NetBSD: do_command.c,v 1.14 2003/04/10 14:14:15 jdolecek Exp $");
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@ -95,15 +95,8 @@ child_process(e, u)
|
||||
#endif
|
||||
Debug(DPROC, ("[%d] child_process('%s')\n", getpid(), e->cmd))
|
||||
|
||||
/* mark ourselves as different to PS command watchers by upshifting
|
||||
* our program name. This has no effect on some kernels.
|
||||
*/
|
||||
/*local*/{
|
||||
char *pch;
|
||||
|
||||
for (pch = ProgramName; *pch; pch++)
|
||||
*pch = MkUpper(*pch);
|
||||
}
|
||||
/* note we handle a job */
|
||||
setproctitle("running job");
|
||||
|
||||
/* discover some useful and important environment settings
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user