Use perl's kill with
and perl will call GenerateConsoleCtrlEvent() with CTRL_C_EVENT.
and perl will call GenerateConsoleCtrlEvent() with CTRL_BREAK_EVENT.
If the receiving process is another Perl script, it can trap these events using the appropriate %SIG handlers.
If is is a non-perl program it will need to use SetConsoleCtrlHandler() to install handlers to respond to the generated events and exit cleanly.
In reply to Re: How do I cleanly kill a spawned process on Win32.
by BrowserUk
in thread How do I cleanly kill a spawned process on Win32.
by DrWhy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |