Notes
This function is in beta test. Please help improve it in the issues
here.
pwd: /out/package ppid: 81493 1: WRITELN sleep 10 | echo 123 2: CTRL+C Scan child pids of ppid: 81493 SIGINT Send signal 2 to pid: 81493 Scan child pids of ppid: 81494 Send signal 2 to pid: 81494 Scan child pids of ppid: 81495 Send signal 2 to pid: 81495 Scan child pids of ppid: 81497 Send signal 2 to pid: 81497 3: WRITELN echo success 4: WRITELN exit exit: 1
Hints
Your answer may be identical to the JOJ answer in the first several lines.
However, the main problem you meet now is Runtime Error. And the exit code of your program is 1, which should be 0.
Please double check your code to solve this problem and try again.
Your Answer
mumsh $ 123 AddressSanitizer:DEADLYSIGNAL ================================================================= ==81494==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7f969e9c4d60 bp 0xdac086ef1ee86956 sp 0xdac086ef1ee86956 T0) ==81494==The signal is caused by a READ memory access. ==81494==Hint: address points to the zero page. AddressSanitizer:DEADLYSIGNAL AddressSanitizer: nested bug in the same thread, aborting.
JOJ Answer
mumsh $ 123 mumsh $ success mumsh $ exit