This commit is contained in:
David Delassus 2011-10-30 18:19:51 +01:00
parent 7b9d9d1e53
commit 4e9be5ff15

View File

@ -270,12 +270,12 @@ wmfs_loop(void)
}
else if(W->fifo.fd > 0 && FD_ISSET(W->fifo.fd, &iset))
{
if (fifo_read() == 0)
if(fifo_read() == 0)
{
close (W->fifo.fd);
close(W->fifo.fd);
if (!(W->fifo.fd = open (W->fifo.path, O_RDONLY | O_NDELAY, 0)))
warnx ("Can't reopen FIFO: %s\n", strerror (errno));
if(!(W->fifo.fd = open(W->fifo.path, O_RDONLY | O_NDELAY, 0)))
warnx("Can't reopen FIFO: %s\n", strerror(errno));
}
}
}