]>
Commit | Line | Data |
---|---|---|
b52f6eb2 DW |
1 | --- netkit-telnet-0.17/configure.confverb 2000-07-29 20:00:29.000000000 +0200 |
2 | +++ netkit-telnet-0.17/configure 2004-07-05 10:50:36.492963840 +0200 | |
3 | @@ -263,14 +263,19 @@ | |
4 | cat <<EOF >__conftest.cc | |
5 | #include <unistd.h> | |
6 | #include <signal.h> | |
7 | -int count=0; | |
8 | +volatile int count=0; | |
9 | void handle(int foo) { count++; } | |
10 | int main() { | |
11 | + sigset_t sset; | |
12 | int pid=getpid(); | |
13 | + sigemptyset(&sset); | |
14 | + sigaddset(&sset, SIGINT); | |
15 | + sigprocmask(SIG_UNBLOCK, &sset, NULL); | |
16 | signal(SIGINT, handle); | |
17 | kill(pid,SIGINT); | |
18 | kill(pid,SIGINT); | |
19 | kill(pid,SIGINT); | |
20 | + sleep(1); | |
21 | if (count!=3) return 1; | |
22 | return 0; | |
23 | } |