Hi Henrik, On Sun, May 14, 2017 at 09:58:12PM +0000, Henrik Nergaard wrote:
Windows do not have Unix-style signals such as SIGUSR1.
To kill a process you can use Windows PowerShell:
$ Stop-Process -Name Pharo
Or by pid:
$ Get-Process -Name Pharo
$ Stop-Process -Id 42
Thanks for your reply. The kill command on Unix is somewhat misnamed, it actually just sends one of a number of signals to the process. For some of those signals, it is up to the process to decide how it will respond. For the USR1 signal, the VM responds by printing out information about its internal state, including: - version information - C stack backtrace & registers - All Smalltalk process stacks - Most recent primitives What I'm hoping is that the same thing can be done on Windows. My understanding is that stop-process can only be used for terminating a process. Cheers, Alistair
From: Alistair Grant Sent: 14 May 2017 23:18 To: pharo-users@lists.pharo.org Subject: [Pharo-users] Windows equivalent of kill -s SIGUSR1?
Hi All,
The subject pretty much says it all: Is there an equivalent on Windows to the linux
kill -s SIGUSR1 <pid>
that gets the VM to dump its current status?
Thanks, Alistair