Notes
This function is in beta test. Please help improve it in the issues
here.
pwd: /out/package ppid: 15236 1: WRITELN sleep 10 2: CTRL+C Scan child pids of ppid: 15236 SIGINT Send signal 2 to pid: 15236 Scan child pids of ppid: 15237 Send signal 2 to pid: 15237 Scan child pids of ppid: 15238 Send signal 2 to pid: 15238 Scan child pids of ppid: 15239 Send signal 2 to pid: 15239 3: WRITELN echo 123 > 1.txt 4: WRITELN sleep 10 > 1.txt 5: CTRL+C Scan child pids of ppid: 15236 SIGINT Send signal 2 to pid: 15236 Scan child pids of ppid: 15237 Send signal 2 to pid: 15237 Scan child pids of ppid: 15238 Send signal 2 to pid: 15238 Scan child pids of ppid: 15244 Send signal 2 to pid: 15244 Scan child pids of ppid: 15239 Send signal 2 to pid: 15239 Scan child pids of ppid: 15240 Send signal 2 to pid: 15240 Scan child pids of ppid: 15241 Send signal 2 to pid: 15241 Scan child pids of ppid: 15242 Send signal 2 to pid: 15242 Scan child pids of ppid: 15245 Send signal 2 to pid: 15245 6: WRITELN cat 1.txt 7: WRITELN echo success 8: CTRL+C Scan child pids of ppid: 15236 SIGINT
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 $ 123 mumsh $ success mumsh $ mumsh $ exit
JOJ Answer
mumsh $ mumsh $ mumsh $ mumsh $ mumsh $ success mumsh $ mumsh $ exit