[Vm-dev] Re: OSProcessPlugin:
VMConstruction-Plugins-OSProcessPlugin-dtl.32.mcz
David T. Lewis
lewis at mail.msen.com
Sat Jan 21 16:59:11 UTC 2012
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 at lists.squeakfoundation.org wrote:
> Dave Lewis uploaded a new version of VMConstruction-Plugins-OSProcessPlugin to project OSProcessPlugin:
> http://www.squeaksource.com/OSProcessPlugin/VMConstruction-Plugins-OSProcessPlugin-dtl.32.mcz
>
> ==================== 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.
More information about the Vm-dev
mailing list