commit efbf359cc104f6b0ad86cc0be0e9b207bc671be2 Author: Bryan Drewery Date: Tue Mar 21 16:15:32 2017 -0700 timestamp: Fix not exiting when stdin closes. This was causing bulk builders to just hang on log_stop. diff --git src/libexec/poudriere/timestamp/timestamp.c src/libexec/poudriere/timestamp/timestamp.c index 2cbc602a..a567197e 100644 --- src/libexec/poudriere/timestamp/timestamp.c +++ src/libexec/poudriere/timestamp/timestamp.c @@ -165,10 +165,10 @@ main(int argc, char **argv) pending_len = (size_t)ev[i].data; prefix_output(fd_in, fd_out, pending_len, start); -#if 0 - if (ev[i].flags & EV_EOF) + if (child_pid == -1 && + ev[i].ident == STDIN_FILENO && + ev[i].flags & EV_EOF) done = 1; -#endif } else if (ev[i].filter == EVFILT_PROC) { /* Pwait code here */ status = ev[i].data;