diff --git a/respawn.c b/respawn.c index 286e305..14e1ef0 100644 --- a/respawn.c +++ b/respawn.c @@ -63,6 +63,7 @@ main(int argc, char *argv[]) signal(SIGTERM, sigterm); if (fifo) { + /* TODO: we should use O_RDONLY and re-open the fd on EOF */ fd = open(fifo, O_RDWR | O_NONBLOCK); if (fd < 0) eprintf("open %s:", fifo);