Notes
This function is in beta test. Please help improve it in the issues
here.
pwd: /out/package ppid: 21540 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: 21540 SIGINT Send signal 2 to pid: 21540 Scan child pids of ppid: 21541 Send signal 2 to pid: 21541 Scan child pids of ppid: 21542 Send signal 2 to pid: 21542 Scan child pids of ppid: 21543 Send signal 2 to pid: 21543 3: CTRL+C Scan child pids of ppid: 21540 SIGINT Send signal 2 to pid: 21540 Scan child pids of ppid: 21541 Send signal 2 to pid: 21541 Scan child pids of ppid: 21548 Send signal 2 to pid: 21548 Scan child pids of ppid: 21552 Send signal 2 to pid: 21552 Scan child pids of ppid: 21543 Send signal 2 to pid: 21543 Scan child pids of ppid: 21544 Send signal 2 to pid: 21544 Scan child pids of ppid: 21545 Send signal 2 to pid: 21545 Scan child pids of ppid: 21547 Send signal 2 to pid: 21547 Scan child pids of ppid: 21549 Send signal 2 to pid: 21549 4: WRITELN echo success 5: CTRL+C Scan child pids of ppid:
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.
Please double check your code to solve this problem and try again.
Your Answer
JOJ Answer
mumsh $ 123 mumsh $ mumsh $ success mumsh $ mumsh $ exit