November 17, 2022

Doing my research, the only option I see is by using 'setpgid' from 'core.sys.posix.unistd'
and setting the foreground process using 'tcsetpgrp' from the same module, but I don't know how to go about doing that with the 'std.process.spawnProcess', I'm writing a shell and the purpose of this is to only kill the child process in case of the SIGINT signal.