supplying NULL args in select
parent
e571de83e9
commit
2c66b422e7
2
main.c
2
main.c
|
@ -263,7 +263,7 @@ main(int argc, char *argv[])
|
||||||
FD_SET(STDIN_FILENO, &rd);
|
FD_SET(STDIN_FILENO, &rd);
|
||||||
FD_SET(xfd, &rd);
|
FD_SET(xfd, &rd);
|
||||||
|
|
||||||
i = select(xfd + 1, &rd, 0, 0, 0);
|
i = select(xfd + 1, &rd, NULL, NULL, NULL);
|
||||||
if(i == -1 && errno == EINTR)
|
if(i == -1 && errno == EINTR)
|
||||||
continue;
|
continue;
|
||||||
if(i < 0)
|
if(i < 0)
|
||||||
|
|
Loading…
Reference in New Issue