Notes
This function is in beta test. Please help improve it in the issues
here.
pwd: /out/package ppid: 81509 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: 81509 SIGINT Send signal 2 to pid: 81509 Scan child pids of ppid: 81510 Send signal 2 to pid: 81510 Scan child pids of ppid: 81521 Send signal 2 to pid: 81521 3: CTRL+C Scan child pids of ppid: 81509 SIGINT Send signal 2 to pid: 81509 Scan child pids of ppid: 81510 Send signal 2 to pid: 81510 Scan child pids of ppid: 81524 Send signal 2 to pid: 81524 4: WRITELN echo success 5: CTRL+C Scan child pids of ppid: 81509 SIGINT Send signal 2 to pid: 81509 Scan child pids of ppid: 81510 Send signal 2 to pid: 81510 Scan child pids of ppid: 81527 Send signal 2 to pid: 81527 6: 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 ================================================================= ==81510==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7f7ce9522d60 bp 0x901bb41722049f98 sp 0x901bb41722049f98 T0) ==81510==The signal is caused by a READ memory access. ==81510==Hint: address points to the zero page. AddressSanitizer:DEADLYSIGNAL AddressSanitizer: nested bug in the same thread, aborting.
JOJ Answer
mumsh $ 123 mumsh $ mumsh $ success mumsh $ mumsh $ exit