]> git.tdb.fi Git - libs/core.git/blobdiff - source/io/unix/poll.cpp
Interpret POLLHUP as end-of-file
[libs/core.git] / source / io / unix / poll.cpp
index 650f2268e0fd2e419c7624ce76ab8890b6e952a0..6272b4dbf143e26aba3331117e284d1b690dbac7 100644 (file)
@@ -43,6 +43,8 @@ inline PollEvent poll_event_from_sys(int event)
                result = result|P_OUTPUT;
        if(event&POLLERR)
                result = result|P_ERROR;
+       if(event&POLLHUP)
+               result = result|P_HANGUP;
 
        return result;
 }