[Gambas-user] Control-C and a Process

Benoit Minisini gambas at ...1...
Sun Feb 4 22:44:51 CET 2007


On Sunday 04 February 2007 21:27, Rob wrote:
> On Sunday 04 February 2007 04:57, Benoit Minisini wrote:
> > CTRL+C send the SIGINT signal to the process, whereas
> > Process.Kill() sends the SIGKILL signal.
>
> We had talked on the list previously about adding an optional
> integer argument to Process.Kill() to choose a signal number
> (Process.Kill() actually sends SIGTERM (15) by default, I think,
> not SIGKILL (9).)  Maybe that would accomplish what he wants?
>
> In the meantime, Shell("kill -INT " & myprocess.Id) ought to do
> it, I think... assuming he wants the usual results of a Ctrl-C
> and not just send a keystroke that does something in an
> application, such as Emacs.
>
> Rob
>
>

At the moment, I don't want to add the signal notion to the Gambas language. 
Otherwise, I will have to support more than just sending a signal (for 
coherency reasons), and I don't want at the moment.

Regards,

-- 
Benoit Minisini




More information about the User mailing list