Notes
This function is in beta test. Please help improve it in the issues
here.
pwd: /out/package ppid: 5384 1: WRITELN sleep 10 2: CTRL+C Scan child pids of ppid: 5384 SIGINT Send signal 2 to pid: 5384 Scan child pids of ppid: 5385 Send signal 2 to pid: 5385 Scan child pids of ppid: 5386 Send signal 2 to pid: 5386 Scan child pids of ppid: 5387 Send signal 2 to pid: 5387 3: WRITELN echo success 4: CTRL+C Scan child pids of ppid: 5384 SIGINT Send signal 2 to pid: 5384 Scan child pids of ppid: 5385 Send signal 2 to pid: 5385 Scan child pids of ppid: 5391 Send signal 2 to pid: 5391 Scan child pids of ppid: 5387 Send signal 2 to pid: 5387 Scan child pids of ppid: 5388 Send signal 2 to pid: 5388 Scan child pids of ppid: 5389 Send signal 2 to pid: 5389 Scan child pids of ppid: 5390 Send signal 2 to pid: 5390 Scan child pids of ppid: 5392 Send signal 2 to pid: 5392 5: WRITELN exit
Hints
Your answer may be identical to the JOJ answer in the first several lines.
However, you will still get Wrong Answer because the complete output may be longer and there might be errors in the future lines.
Please double check your code to solve this problem and try again.
Your Answer
mumsh $ mumsh $ mumsh $ success exit
JOJ Answer
mumsh $ mumsh $ success mumsh $ mumsh $ exit