diff options
author | thomas <thomas@FreeBSD.org> | 2006-08-16 18:33:35 +0000 |
---|---|---|
committer | thomas <thomas@FreeBSD.org> | 2006-08-16 18:33:35 +0000 |
commit | 99c9166015cb50a6814489ec28d2988e688d4879 (patch) | |
tree | ccf5d8bf29d13d690c5c661afdcc7fbea68f5473 /usr.sbin/rpc.lockd | |
parent | fafadf82fa80478606597fbbd550f32161e33a90 (diff) | |
download | FreeBSD-src-99c9166015cb50a6814489ec28d2988e688d4879.zip FreeBSD-src-99c9166015cb50a6814489ec28d2988e688d4879.tar.gz |
Use setproctitle(3) to provide identification of the client and server
processes created by rpc.lockd.
MFC after: 1 week
Diffstat (limited to 'usr.sbin/rpc.lockd')
-rw-r--r-- | usr.sbin/rpc.lockd/kern.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.sbin/rpc.lockd/kern.c b/usr.sbin/rpc.lockd/kern.c index 6073f55..9a39e8f 100644 --- a/usr.sbin/rpc.lockd/kern.c +++ b/usr.sbin/rpc.lockd/kern.c @@ -147,8 +147,10 @@ client_request(void) case -1: err(1, "fork"); case 0: + setproctitle ("client"); break; default: + setproctitle ("server"); return (child); } |