ht icon indicating copy to clipboard operation
ht copied to clipboard

Sending signals to foreground process

Open pzmarzly opened this issue 1 year ago • 1 comments

Does ht support sending a signal to current (foreground) process? How to send SIGINT or SIGKILL?

My Unix knowledge is rusty, but I think ht doesn't need to know what the foreground process is. If you send a signal to pty, AFAIK the kernel will somehow forward it to the foreground process in the process group.

pzmarzly avatar Jun 04 '24 15:06 pzmarzly

In #18 / #21 we'll expose PID of the forked process so you'll be able to send it arbitrary signal. We already have the PID at hand, that's the simplest way I believe.

ku1ik avatar Jul 22 '25 11:07 ku1ik