Notes
This function is in beta test. Please help improve it in the issues
here.
pwd: /out/package ppid: 2773 1: WRITELN sleep 10 | sleep 10 | sleep 10 | sleep 10 | sleep 10 | sleep 10 | sleep 10 | sleep 10 | sleep 10 | echo 123 2: CTRL+C Scan child pids of ppid: 2773 SIGINT Send signal 2 to pid: 2773 Scan child pids of ppid: 2774 Send signal 2 to pid: 2774 Scan child pids of ppid: 2775 Send signal 2 to pid: 2775 Scan child pids of ppid: 2778 Send signal 2 to pid: 2778 Scan child pids of ppid: 2776 Send signal 2 to pid: 2776 3: CTRL+C Scan child pids of ppid: 2773 SIGINT Send signal 2 to pid: 2773 Scan child pids of ppid: 2774 Send signal 2 to pid: 2774 Scan child pids of ppid: 2775 Send signal 2 to pid: 2775 Scan child pids of ppid: 2781 Send signal 2 to pid: 2781 Scan child pids of ppid: 2785 Send signal 2 to pid: 2785 Scan child pids of ppid: 2783 Send signal 2 to pid: 2783 4: WRITELN echo success 5: CTRL+C Scan child pids of ppid: 2773 SIGINT Send signal 2 to pid: 2773 Scan child pids of ppid: 2774 Send signal 2 to pid: 2774 Scan child pids of ppid: 2775 Send signal 2
Hints
Your answer may be identical to the JOJ answer in the first several lines.
However, the main problem you meet now is Time Exceeded. And the exit code of your program is -9, which should be 0.
Please double check your code to solve this problem and try again.
Your Answer
mumsh $
JOJ Answer
mumsh $ 123 mumsh $ mumsh $ success mumsh $ mumsh $ exit