Stop cron from shouting in the syslog. Use setproctitle() instead, since

smashing argv[0] doesn't have the intended effect of changing the ps(1)
output these days.

PR:		25850
This commit is contained in:
Peter Wemm 2001-03-17 00:21:54 +00:00
parent da4c1ce305
commit c7517d5af9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=74375

View File

@ -91,12 +91,7 @@ child_process(e, u)
/* mark ourselves as different to PS command watchers by upshifting
* our program name. This has no effect on some kernels.
*/
/*local*/{
register char *pch;
for (pch = ProgramName; *pch; pch++)
*pch = MkUpper(*pch);
}
setproctitle("running job");
/* discover some useful and important environment settings
*/