Hi,
I'm starting a bunch of processes using win32/process
(http://rubyforge.org/projects/win32utils/). I want to be able to
kill some of those processes. In *nix, I'd send them a TERM signal.
What's the Windows equivalent?
Thanks,
Joe
Hi,
I'm starting a bunch of processes using win32/process
(http://rubyforge.org/projects/win32utils/). I want to be able to
kill some of those processes. In *nix, I'd send them a TERM signal.
What's the Windows equivalent?
Thanks,
Joe
signal = 4 # or 9 if you really want to take it out
Process.kill signal, pid
pth
On 10/27/06, Joe Van Dyk <joevandyk@gmail.com> wrote:
Hi,
I'm starting a bunch of processes using win32/process
(http://rubyforge.org/projects/win32utils/\). I want to be able to
kill some of those processes. In *nix, I'd send them a TERM signal.
What's the Windows equivalent?Thanks,
Joe
I'm using win32/process's Create function to start a new Windows
process.
However, if I do a Process.kill(0, <pid>) to a program that I started
via Ruby, it always returns back an array with the pid in it, even if
the process was killed.
Any ideas?
Thanks,
Joe
Patrick Hurley wrote:
signal = 4 # or 9 if you really want to take it out
Process.kill signal, pidpth
On 10/27/06, Joe Van Dyk <joevandyk@gmail.com> wrote:
> Hi,
>
> I'm starting a bunch of processes using win32/process
> (http://rubyforge.org/projects/win32utils/\). I want to be able to
> kill some of those processes. In *nix, I'd send them a TERM signal.
> What's the Windows equivalent?
>
> Thanks,
> Joe
>
>