Artificial intelligent assistant

Can Ctrl+C send the SIGINT signal to multiple processes? I have read that when you press `Ctrl`+`C` a `SIGINT` signal will be sent to the _foreground process group_. Can you give me an example of how I can have two or more processes in the _foreground process group_ , because I want to see if all processes will terminate if I press `Ctrl`+`C`.

Since new processes all belong to the same process group, that of the parent process, have a process start a bunch of processes (`fork`), and then with appropriate logging and a delay, type `Ctrl`+`C`. They all eat a `SIGINT`.


$ perl -E 'fork for 1..2;say "ima $$"; $SIG{INT}=sub{die "woe $$\
"}; sleep 999'
ima 80920
ima 80922
ima 80921
ima 80923
^Cwoe 80920
woe 80922
woe 80921
woe 80923
$


(Add `strace` or `sysdig` or such to see the system calls or signals involved.)

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy fa5f88c0cffd790cf66030cc91560fa6