Notes
This function is in beta test. Please help improve it in the issues
here.
pwd: /out/package ppid: 15283 1: WRITELN sleep 10 2: CTRL+C Scan child pids of ppid: 15283 SIGINT Send signal 2 to pid: 15283 Scan child pids of ppid: 15284 Send signal 2 to pid: 15284 Scan child pids of ppid: 15285 Send signal 2 to pid: 15285 Scan child pids of ppid: 15286 Send signal 2 to pid: 15286 3: WRITELN echo 123 > 1.txt 4: WRITELN sleep 10 > 1.txt 5: CTRL+C Scan child pids of ppid: 15283 SIGINT Send signal 2 to pid: 15283 Scan child pids of ppid: 15284 Send signal 2 to pid: 15284 Scan child pids of ppid: 15285 Send signal 2 to pid: 15285 Scan child pids of ppid: 15290 Send signal 2 to pid: 15290 Scan child pids of ppid: 15291 Send signal 2 to pid: 15291 Scan child pids of ppid: 15286 Send signal 2 to pid: 15286 Scan child pids of ppid: 15287 Send signal 2 to pid: 15287 Scan child pids of ppid: 15288 Send signal 2 to pid: 15288 Scan child pids of ppid: 15289 Send signal 2 to pid: 15289 Scan child pids of ppid: 15292 Send signal 2 to pid: 15292 6: WRITELN cat 1.txt 7: WRITELN echo
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 $ mumsh $ mumsh $ mumsh $ success mumsh $ mumsh $ exit
JOJ Answer
mumsh $ mumsh $ mumsh $ mumsh $ mumsh $ success mumsh $ mumsh $ exit