signal.c

Cマスター

Explorer

C
初級10
中級10
上級10
エキスパート5
マスター5
function_ptr.c
linked_list.c
bit_ops.c
signal.c
mem_pool.c
C++40
C#40
Dart40
Go40
Java40
JavaScript40
Kotlin40
Objective-C40
Perl40
PHP40
Python40
R40
Ruby40
Rust40
Shell40
Swift40
TypeScript40
signal.c
Click to focus
1
2
3
4
5
6
7
8
9
10
11
12
13
volatile sig_atomic_t run = 1;
void handler(int sig) {
   if (sig == SIGINT) run = 0;
}
int main() {
   signal(SIGINT, handler);
   signal(SIGTERM, handler);
   while (run) {
       process();
       sleep(1);
   }
   cleanup();
}
0WPM0%0:000/230(0%)|Ln 1, Col 1
UTF-8C

関連する練習問題