From c6d0f16db1dc450c7d6c0b5b5b8ca37ada5130d9 Mon Sep 17 00:00:00 2001 From: Thomas Quinot Date: Wed, 16 Aug 2006 18:33:35 +0000 Subject: [PATCH] Use setproctitle(3) to provide identification of the client and server processes created by rpc.lockd. MFC after: 1 week --- usr.sbin/rpc.lockd/kern.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/usr.sbin/rpc.lockd/kern.c b/usr.sbin/rpc.lockd/kern.c index 6073f559fe6a..9a39e8f5c854 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); }