diff options
author | peter <peter@FreeBSD.org> | 2001-03-17 00:21:54 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2001-03-17 00:21:54 +0000 |
commit | 31a37074ac17e3c8f6fe5f009f24e7a8923955bf (patch) | |
tree | 4197b3bcdd58a82e33bc943f4d8853b86f0a9f1e /usr.sbin | |
parent | 29db911e9bf846311e7bd55cd9a4565563dd6692 (diff) | |
download | FreeBSD-src-31a37074ac17e3c8f6fe5f009f24e7a8923955bf.zip FreeBSD-src-31a37074ac17e3c8f6fe5f009f24e7a8923955bf.tar.gz |
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
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/cron/cron/do_command.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/usr.sbin/cron/cron/do_command.c b/usr.sbin/cron/cron/do_command.c index cc19f4a..4b6fe33 100644 --- a/usr.sbin/cron/cron/do_command.c +++ b/usr.sbin/cron/cron/do_command.c @@ -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 */ |