Notes
This function is in beta test. Please help improve it in the issues
here.
pwd: /out/package ppid: 10524 1: WRITELN sleep 10 | echo 123 2: CTRL+C Scan child pids of ppid: 10524 SIGINT Send signal 2 to pid: 10524 Scan child pids of ppid: 10525 Send signal 2 to pid: 10525 Scan child pids of ppid: 10526 Send signal 2 to pid: 10526 Scan child pids of ppid: 10528 Send signal 2 to pid: 10528 3: WRITELN echo success 4: 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 $ 123 mumsh $ success mumsh $ ================================================================= ==10533==ERROR: LeakSanitizer: detected memory leaks 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 0x7f8031e64b96 (/lib/x86_64-linux-gnu/libc.so.6+0x21b96) Direct leak of 8 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 0x7f8031e64b96 (/lib/x86_64-linux-gnu/libc.so.6+0x21b96) SUMMARY: AddressSanitizer: 24 byte(s) leaked in 2 allocation(s). mumsh $ ================================================================= ==10525==ERROR: LeakSanitizer: detected memory leaks Direct leak of 16 byte(s) in 1 object(s) allocated from: #0 0x4d
JOJ Answer
mumsh $ 123 mumsh $ success mumsh $ exit