You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
535 B
26 lines
535 B
/* Make sure handling of NULL sigmask is correct. |
|
https://bugs.kde.org/show_bug.cgi?id=364413 |
|
We might try to make a copy and adjust the mask. |
|
Testcase provided by Paul Eggert <eggert@cs.ucla.edu> */ |
|
|
|
#include <stdio.h> |
|
#include <stdlib.h> |
|
#include <sys/select.h> |
|
|
|
int |
|
main (void) |
|
{ |
|
struct timespec timeout; |
|
timeout.tv_sec = 1; |
|
timeout.tv_nsec = 0; |
|
switch (pselect (0, 0, 0, 0, &timeout, 0)) |
|
{ |
|
default: |
|
abort (); |
|
case -1: |
|
perror ("pselect"); |
|
return 1; |
|
case 0: |
|
return 0; |
|
} |
|
}
|
|
|