From b20e74d5d6bcb8024b5b0ce8e619c67cd7a97f76 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Mon, 29 Nov 2010 12:44:52 +0000 Subject: [PATCH] Remove dead assignment in wait_for_child 'pid' is not used anywhere - remove it. --- daemons/clvmd/clvmd.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/daemons/clvmd/clvmd.c b/daemons/clvmd/clvmd.c index 1a9d40e28..9c0fc5fa4 100644 --- a/daemons/clvmd/clvmd.c +++ b/daemons/clvmd/clvmd.c @@ -965,7 +965,6 @@ static __attribute__ ((noreturn)) void wait_for_child(int c_pipe, int timeout) */ static void be_daemon(int timeout) { - pid_t pid; int devnull = open("/dev/null", O_RDWR); if (devnull == -1) { perror("Can't open /dev/null"); @@ -974,7 +973,7 @@ static void be_daemon(int timeout) pipe(child_pipe); - switch (pid = fork()) { + switch (fork()) { case -1: perror("clvmd: can't fork"); exit(2); -- 2.43.5