File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ class ApplicationAsyncSafeFunction extends AsyncSafeFunction {
86
86
}
87
87
88
88
/**
89
- * Call to function `raise` withing a signal handler with mismatching signals
89
+ * Call to function `raise` within a signal handler with mismatching signals
90
90
* ```
91
91
* void int_handler(int signum) {
92
92
* raise(SIGTERM);
Original file line number Diff line number Diff line change @@ -13,12 +13,12 @@ void handler1(int signum) {
13
13
}
14
14
15
15
int f1 (void ) {
16
- if (signal (SIGINT , handler1 ) == SIG_ERR ) // COMPLIANT
16
+ if (signal (SIGINT , handler1 ) == SIG_ERR )
17
17
{
18
18
//...
19
19
}
20
20
21
- log_local_unsafe (); // COMPLIANT
21
+ log_local_unsafe ();
22
22
23
23
return 0 ;
24
24
}
@@ -33,7 +33,7 @@ int f2(void) {
33
33
}
34
34
35
35
while (!eflag ) {
36
- log_local_unsafe (); // COMPLIANT
36
+ log_local_unsafe ();
37
37
}
38
38
39
39
return 0 ;
@@ -113,7 +113,7 @@ int f6(void) {
113
113
// ...
114
114
}
115
115
116
- if (raise (SIGINT ) != 0 ) // COMPLIANT
116
+ if (raise (SIGINT ) != 0 )
117
117
{
118
118
// ...
119
119
}
You can’t perform that action at this time.
0 commit comments