Notes
This function is in beta test. Please help improve it in the issues
here.
pwd: /out/package ppid: 10548 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: 10548 SIGINT Send signal 2 to pid: 10548 Scan child pids of ppid: 10549 Send signal 2 to pid: 10549 Scan child pids of ppid: 10550 Send signal 2 to pid: 10550 Scan child pids of ppid: 10551 Send signal 2 to pid: 10551 Scan child pids of ppid: 10552 Send signal 2 to pid: 10552 Scan child pids of ppid: 10553 Send signal 2 to pid: 10553 Scan child pids of ppid: 10554 Send signal 2 to pid: 10554 Scan child pids of ppid: 10555 Send signal 2 to pid: 10555 Scan child pids of ppid: 10556 Send signal 2 to pid: 10556 Scan child pids of ppid: 10557 Send signal 2 to pid: 10557 Scan child pids of ppid: 10558 Send signal 2 to pid: 10558 Scan child pids of ppid: 10560 Send signal 2 to pid: 10560 3: CTRL+C Scan child pids of ppid: 10548 SIGINT Send signal 2 to pid: 10548 Scan child pids of ppid: 10549 Send signal 2 to pid: 10549 Scan
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 $ 123 mumsh $ mumsh $ mumsh $ success mumsh $ mumsh $ ================================================================= ==10549==ERROR: LeakSanitizer: detected memory leaks Direct leak of 72 byte(s) in 1 object(s) allocated from: #0 0x4dd0a0 (/out/package/mumsh_memory_check+0x4dd0a0) #1 0x518231 (/out/package/mumsh_memory_check+0x518231) #2 0x51930d (/out/package/mumsh_memory_check+0x51930d) #3 0x7f4c0dbcab96 (/lib/x86_64-linux-gnu/libc.so.6+0x21b96) Direct leak of 16 byte(s) in 1 object(s) allocated from: #0 0x4dd0a0 (/out/package/mumsh_memory_check+0x4dd0a0) #1 0x51b9a3 (/out/package/mumsh_memory_check+0x51b9a3) #2 0x5192f8 (/out/package/mumsh_memory_check+0x5192f8) #3 0x7f4c0dbcab96 (/lib/x86_64-linux-gnu/libc.so.6+0x21b96) Indirect leak of 640 byte(s) in 1 object(s) allocated from: #0 0x4dd520 (/out/package/mumsh_memory_check+0x4dd520) #1 0x51d79f (/out/package/mumsh_memory_check+0x51d79f) #2 0x5192f8 (/out/package/mumsh_memory_check+0x5192f
JOJ Answer
mumsh $ 123 mumsh $ mumsh $ success mumsh $ mumsh $ exit