1 |
158 |
chris |
*** POSIX TEST 4 ***
|
2 |
|
|
Init's ID is 0x0c010001
|
3 |
|
|
Init: sigemptyset - set= 0x00000000
|
4 |
|
|
Init: sigfillset - set= 0xffffffff
|
5 |
|
|
Init: sigdelset - delete SIGUSR1 set= 0xffff7fff
|
6 |
|
|
Init: sigismember - FALSE since SIGUSR1 is not a member
|
7 |
|
|
Init: sigismember - TRUE since SIGUSR2 is a member
|
8 |
|
|
Init: send SIGUSR1 to process
|
9 |
|
|
Signal: 16 caught by 0xc010001 (1)
|
10 |
|
|
Init: Block SIGUSR1
|
11 |
|
|
Init: send SIGUSR1 to process
|
12 |
|
|
Signal: 16 caught by 0xc010001 (1)
|
13 |
|
|
Init: Block SIGUSR1
|
14 |
|
|
Init: Signals pending 0x00000000
|
15 |
|
|
Init: send SIGUSR1 to process
|
16 |
|
|
Init: Signals pending 0x00008000
|
17 |
|
|
Init: Unblock SIGUSR1
|
18 |
|
|
Signal: 16 caught by 0xc010001 (2)
|
19 |
|
|
Init: create a thread interested in SIGUSR1
|
20 |
|
|
Init: Block SIGUSR1
|
21 |
|
|
Init: Signals pending 0x00000000
|
22 |
|
|
Init: sleep so the other task can block
|
23 |
|
|
Task_1: sleeping for 5 seconds
|
24 |
|
|
Init: send SIGUSR1 to process
|
25 |
|
|
Init: Signals pending 0x00008000
|
26 |
|
|
Init: sleep so the other task can catch signal
|
27 |
|
|
Signal: 16 caught by 0xc010002 (3)
|
28 |
|
|
Task_1: 4 seconds left
|
29 |
|
|
Task_1: exit
|
30 |
|
|
Init: Unblock SIGALRM
|
31 |
|
|
Init: Firing alarm in 5 seconds
|
32 |
|
|
Init: 0 seconds left on previous alarm
|
33 |
|
|
Init: Firing alarm in 2 seconds
|
34 |
|
|
Init: 4 seconds left on previous alarm - MAY BE 5 SECONDS ALSO
|
35 |
|
|
Init: Wait 4 seconds for alarm
|
36 |
|
|
Signal: 14 caught by 0xc010001 (4)
|
37 |
|
|
Init: 2 seconds left in sleep
|
38 |
|
|
Init: Block SIGUSR1 and SIGUSR2 only
|
39 |
|
|
Init: Previous blocked set was 0x00008000
|
40 |
|
|
Init: Current blocked set is 0x00018000
|
41 |
|
|
Init: Unblock all signals
|
42 |
|
|
Init: Previous blocked set was 0x00018000
|
43 |
|
|
Init: create a thread to send Init SIGUSR1
|
44 |
|
|
Init: sigsuspend for any signal
|
45 |
|
|
Task_2: sending SIGUSR1
|
46 |
|
|
Task_2: exit
|
47 |
|
|
Signal: 16 caught by 0xc010001 (5)
|
48 |
|
|
Init: awakended from sigsuspend status=00000016
|
49 |
|
|
Init: create a thread to sent Process SIGUSR1 with SA_SIGINFO
|
50 |
|
|
Init: sleep so the Task_3 can sigqueue SIGUSR1
|
51 |
|
|
Task_3: sigqueue SIGUSR1 with value= 16
|
52 |
|
|
Signal_info: 16 caught by 0xc010004 (6) si_signo= 16 si_code= 1 value= 16
|
53 |
|
|
Task_3: sigwaitinfo SIGUSR1 with value= 16
|
54 |
|
|
Init: sigqueue occurred
|
55 |
|
|
Init: Block SIGUSR1
|
56 |
|
|
Init: send SIGUSR1 to process
|
57 |
|
|
Init: sleep so the Task_3 can receive SIGUSR1
|
58 |
|
|
Task_3: si_signo= 16 si_code= 1 value= 0
|
59 |
|
|
Task_3: sigwait SIGUSR1
|
60 |
|
|
Init: Block SIGUSR1
|
61 |
|
|
Init: send SIGUSR1 to process
|
62 |
|
|
Init: sleep so the Task_3 can receive SIGUSR1
|
63 |
|
|
Task_3: signo= 16
|
64 |
|
|
Task_3: pause
|
65 |
|
|
Init: Block SIGUSR2
|
66 |
|
|
Init: send SIGUSR2 to process
|
67 |
|
|
Init: sleep so the Task_3 can receive SIGUSR2
|
68 |
|
|
Task_3: pause= 17
|
69 |
|
|
Task_3: sending SIGUSR2
|
70 |
|
|
Task_3: sleep so the Init task can reguest a signal
|
71 |
|
|
Init: sigsuspend for any signal
|
72 |
|
|
Init: awakended from sigsuspend status=17
|
73 |
|
|
Init: sigemptyset - EINVAL (set invalid)
|
74 |
|
|
Init: sigfillset - EINVAL (set invalid)
|
75 |
|
|
Init: sigaddset - EINVAL (set invalid)
|
76 |
|
|
Init: sigaddset - SUCCESSFUL (signal = 0)
|
77 |
|
|
Init: sigaddset - EINVAL (set invalid)
|
78 |
|
|
Init: sigdelset - EINVAL (set invalid)
|
79 |
|
|
Init: sigdelset - SUCCESSFUL (signal = 0)
|
80 |
|
|
Init: sigdelset - EINVAL (set invalid)
|
81 |
|
|
Init: sigismember - EINVAL (set invalid)
|
82 |
|
|
Init: sigismember - SUCCESSFUL (signal = 0)
|
83 |
|
|
Init: sigismember - EINVAL (signal invalid)
|
84 |
|
|
Init: sigaction - SUCCESSFUL (signal = 0)
|
85 |
|
|
Init: sigaction - EINVAL (signal invalid)
|
86 |
|
|
Init: sigaction - EINVAL (SIGKILL)
|
87 |
|
|
Init: pthread_sigmask - EINVAL (set and oset invalid)
|
88 |
|
|
Init: pthread_sigmask - EINVAL (how invalid)
|
89 |
|
|
Init: sigpending - EINVAL (set invalid)
|
90 |
|
|
Init: pthread_sigmask - EINVAL (timout->nsec invalid < 0)
|
91 |
|
|
Init: pthread_sigmask - EINVAL (timout->nsec invalid to large)
|
92 |
|
|
Init: pthread_kill - EINVAL (sig invalid)
|
93 |
|
|
Init: pthread_kill - ENOSYS (signal SA_SIGINFO)
|
94 |
|
|
Init: pthread_kill - ESRCH (signal SA_SIGINFO)
|
95 |
|
|
Init: pthread_kill - SUCCESSFUL (signal = 0)
|
96 |
|
|
Init: pthread_kill - SUCCESSFUL (signal = SIG_IGN)
|
97 |
|
|
Init: kill - ESRCH (pid invalid)
|
98 |
|
|
Init: kill - SUCCESSFUL (signal = 0)
|
99 |
|
|
Init: kill - EINVAL (sig invalid)
|
100 |
|
|
*** END OF POSIX TEST 4 ***
|