remove debug code left in by accident

This commit is contained in:
Alfred Perlstein 2001-04-18 21:41:27 +00:00
parent a5e25da40d
commit b863595d52

View File

@ -113,8 +113,6 @@ client_request(void)
syslog(LOG_ERR, "mkfifo: %s: %m", _PATH_LCKFIFO); syslog(LOG_ERR, "mkfifo: %s: %m", _PATH_LCKFIFO);
exit (1); exit (1);
} }
#define linebug syslog(LOG_ERR, "lockd: %d", __LINE__);
linebug
/* /*
* Create a separate process, the client code is really a separate * Create a separate process, the client code is really a separate
@ -129,7 +127,6 @@ linebug
return (child); return (child);
} }
linebug
signal(SIGHUP, client_cleanup); signal(SIGHUP, client_cleanup);
signal(SIGTERM, client_cleanup); signal(SIGTERM, client_cleanup);
@ -138,7 +135,6 @@ linebug
owner.pid = getpid(); owner.pid = getpid();
(void)gethostname(hostname, sizeof(hostname) - 1); (void)gethostname(hostname, sizeof(hostname) - 1);
linebug
reopen: reopen:
/* Open the fifo for reading. */ /* Open the fifo for reading. */
if ((fd = open(_PATH_LCKFIFO, O_RDONLY /* | O_NONBLOCK */)) < 0) if ((fd = open(_PATH_LCKFIFO, O_RDONLY /* | O_NONBLOCK */)) < 0)
@ -151,14 +147,12 @@ reopen:
FD_ZERO(&rdset); FD_ZERO(&rdset);
for (;;) { for (;;) {
linebug
/* Wait for contact... fifo's return EAGAIN when read with /* Wait for contact... fifo's return EAGAIN when read with
* no data * no data
*/ */
FD_SET(fd, &rdset); FD_SET(fd, &rdset);
(void)select(fd + 1, &rdset, NULL, NULL, NULL); (void)select(fd + 1, &rdset, NULL, NULL, NULL);
linebug
/* Read the fixed length message. */ /* Read the fixed length message. */
if ((nr = read(fd, &msg, sizeof(msg))) == sizeof(msg)) { if ((nr = read(fd, &msg, sizeof(msg))) == sizeof(msg)) {
if (d_args) if (d_args)
@ -202,7 +196,6 @@ linebug
} }
} }
} else if (nr == -1) { } else if (nr == -1) {
linebug
if (errno != EAGAIN) { if (errno != EAGAIN) {
syslog(LOG_ERR, "read: %s: %m", _PATH_LCKFIFO); syslog(LOG_ERR, "read: %s: %m", _PATH_LCKFIFO);
goto err; goto err;