don't set the wr_set in select (previously it was only ignored in pselect)

This commit is contained in:
Nikos Mavrogiannopoulos
2015-06-29 15:59:41 +02:00
parent 1d3bf55609
commit 800021234c

View File

@@ -1128,7 +1128,7 @@ int main(int argc, char** argv)
ts.tv_usec = 0;
ts.tv_sec = 30;
sigprocmask(SIG_UNBLOCK, &blockset, NULL);
ret = select(n + 1, &rd_set, &wr_set, NULL, &ts);
ret = select(n + 1, &rd_set, NULL/*&wr_set*/, NULL, &ts);
sigprocmask(SIG_BLOCK, &blockset, NULL);
#endif