summaryrefslogtreecommitdiffstats
path: root/usr.sbin/rpc.lockd/kern.c
diff options
context:
space:
mode:
authoralfred <alfred@FreeBSD.org>2001-04-18 21:41:27 +0000
committeralfred <alfred@FreeBSD.org>2001-04-18 21:41:27 +0000
commit9b2d5fc0447c089ab590dfba2f29845e3b5270b0 (patch)
tree57808d49d48b406ffbcff39e1d4de009788c2774 /usr.sbin/rpc.lockd/kern.c
parent87e8621c525d12234aad581a9a73642287b87eca (diff)
downloadFreeBSD-src-9b2d5fc0447c089ab590dfba2f29845e3b5270b0.zip
FreeBSD-src-9b2d5fc0447c089ab590dfba2f29845e3b5270b0.tar.gz
remove debug code left in by accident
Diffstat (limited to 'usr.sbin/rpc.lockd/kern.c')
-rw-r--r--usr.sbin/rpc.lockd/kern.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/usr.sbin/rpc.lockd/kern.c b/usr.sbin/rpc.lockd/kern.c
index 59f035d..730646c 100644
--- a/usr.sbin/rpc.lockd/kern.c
+++ b/usr.sbin/rpc.lockd/kern.c
@@ -113,8 +113,6 @@ client_request(void)
syslog(LOG_ERR, "mkfifo: %s: %m", _PATH_LCKFIFO);
exit (1);
}
-#define linebug syslog(LOG_ERR, "lockd: %d", __LINE__);
-linebug
/*
* Create a separate process, the client code is really a separate
@@ -129,7 +127,6 @@ linebug
return (child);
}
-linebug
signal(SIGHUP, client_cleanup);
signal(SIGTERM, client_cleanup);
@@ -138,7 +135,6 @@ linebug
owner.pid = getpid();
(void)gethostname(hostname, sizeof(hostname) - 1);
-linebug
reopen:
/* Open the fifo for reading. */
if ((fd = open(_PATH_LCKFIFO, O_RDONLY /* | O_NONBLOCK */)) < 0)
@@ -151,14 +147,12 @@ reopen:
FD_ZERO(&rdset);
for (;;) {
-linebug
/* Wait for contact... fifo's return EAGAIN when read with
* no data
*/
FD_SET(fd, &rdset);
(void)select(fd + 1, &rdset, NULL, NULL, NULL);
-linebug
/* Read the fixed length message. */
if ((nr = read(fd, &msg, sizeof(msg))) == sizeof(msg)) {
if (d_args)
@@ -202,7 +196,6 @@ linebug
}
}
} else if (nr == -1) {
-linebug
if (errno != EAGAIN) {
syslog(LOG_ERR, "read: %s: %m", _PATH_LCKFIFO);
goto err;
OpenPOWER on IntegriCloud