Dave Lewis uploaded a new version of VMConstruction-Plugins-OSProcessPlugin to project OSProcessPlugin: http://www.squeaksource.com/OSProcessPlugin/VMConstruction-Plugins-OSProcess...
==================== Summary ====================
Name: VMConstruction-Plugins-OSProcessPlugin-dtl.32 Author: dtl Time: 21 January 2012, 10:43:22 am UUID: 6c9726ae-cdfb-4a54-8ada-48fb8f6c4da8 Ancestors: VMConstruction-Plugins-OSProcessPlugin-dtl.31
OSProcessPlugin 4.4.8
Fix primitivePrintAllStacksOnSignal. Works on both Cog and Interpreter VM, but may have linker issues on Mac OS X (see below).
To set signal hander to print stacks on receipt of SIGUSR1 without exiting the VM: "OSProcess accessor setPrintAllStacksOnSigUsr1"
To restore to default handler (which may exit the VM): "OSProcess accessor clearPrintAllStacksOnSigUsr1"
May be used with any signal, i.e. if SIGUSR1 is used by a multimedia plugin, then SIGQUIT might be used to print stacks. To set handler: "OSProcess accessor primPrintAllStacksOnSignal: OSProcess accessor primSigQuitNumber"
To restore to original SIGQUIT handler (i.e. exit the VM): "OSProcess accessor primPrintAllStacksOnSignal: nil"
Note for building on OS X: The printAllStacks() function address is dynamically loaded from the interpreter module. It may be necessary to declare this in os_exports[] in osExports.c for this to work on OS X.
The commit notice below contains a cut-and-paste error. I meant to say this:
To restore to original SIGQUIT handler (i.e. exit the VM): "OSProcess accessor primForwardSignal: OSProcess accessor primSigQuitNumber toSemaphore: nil"
Dave
On Sat, Jan 21, 2012 at 04:43:24PM +0000, squeak-dev-noreply@lists.squeakfoundation.org wrote:
Dave Lewis uploaded a new version of VMConstruction-Plugins-OSProcessPlugin to project OSProcessPlugin: http://www.squeaksource.com/OSProcessPlugin/VMConstruction-Plugins-OSProcess...
==================== Summary ====================
Name: VMConstruction-Plugins-OSProcessPlugin-dtl.32 Author: dtl Time: 21 January 2012, 10:43:22 am UUID: 6c9726ae-cdfb-4a54-8ada-48fb8f6c4da8 Ancestors: VMConstruction-Plugins-OSProcessPlugin-dtl.31
OSProcessPlugin 4.4.8
Fix primitivePrintAllStacksOnSignal. Works on both Cog and Interpreter VM, but may have linker issues on Mac OS X (see below).
To set signal hander to print stacks on receipt of SIGUSR1 without exiting the VM: "OSProcess accessor setPrintAllStacksOnSigUsr1"
To restore to default handler (which may exit the VM): "OSProcess accessor clearPrintAllStacksOnSigUsr1"
May be used with any signal, i.e. if SIGUSR1 is used by a multimedia plugin, then SIGQUIT might be used to print stacks. To set handler: "OSProcess accessor primPrintAllStacksOnSignal: OSProcess accessor primSigQuitNumber"
To restore to original SIGQUIT handler (i.e. exit the VM): "OSProcess accessor primPrintAllStacksOnSignal: nil"
Note for building on OS X: The printAllStacks() function address is dynamically loaded from the interpreter module. It may be necessary to declare this in os_exports[] in osExports.c for this to work on OS X.
vm-dev@lists.squeakfoundation.org