summaryrefslogtreecommitdiffstats
path: root/usr.sbin/rpc.lockd
diff options
context:
space:
mode:
authorthomas <thomas@FreeBSD.org>2006-08-16 18:33:35 +0000
committerthomas <thomas@FreeBSD.org>2006-08-16 18:33:35 +0000
commit99c9166015cb50a6814489ec28d2988e688d4879 (patch)
treeccf5d8bf29d13d690c5c661afdcc7fbea68f5473 /usr.sbin/rpc.lockd
parentfafadf82fa80478606597fbbd550f32161e33a90 (diff)
downloadFreeBSD-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.c2
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);
}
OpenPOWER on IntegriCloud