陈越 3 years ago
parent
commit
cbd23dc47c
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      main.c

+ 1
- 0
main.c View File

@ -4,6 +4,7 @@
pid_t main_proc_pid; pid_t main_proc_pid;
void sigint_handler() void sigint_handler()
{ {
fflush(NULL);
pid_t pid = getpid(); pid_t pid = getpid();
if(pid != main_proc_pid) if(pid != main_proc_pid)
{ {

Loading…
Cancel
Save