From 9b2d5fc0447c089ab590dfba2f29845e3b5270b0 Mon Sep 17 00:00:00 2001 From: alfred Date: Wed, 18 Apr 2001 21:41:27 +0000 Subject: remove debug code left in by accident --- usr.sbin/rpc.lockd/kern.c | 7 ------- 1 file changed, 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; -- cgit v1.1