X-Git-Url: https://git.distorted.org.uk/~mdw/tripe/blobdiff_plain/11ad66c29764521f87f0dd399a1e592147c7af36..97567475d4a5cd2860df6aeac5cef30be4342da6:/pkstream/pkstream.c?ds=sidebyside diff --git a/pkstream/pkstream.c b/pkstream/pkstream.c index f03d0ffe..4e565e00 100644 --- a/pkstream/pkstream.c +++ b/pkstream/pkstream.c @@ -436,8 +436,10 @@ int main(int argc, char *argv[]) } else dofwd(STDIN_FILENO, STDOUT_FILENO); - for (;;) - sel_select(&sel); + for (;;) { + if (sel_select(&sel) && errno != EINTR) + die(1, "select failed: %s", strerror(errno)); + } return (0); }