<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div><br></div><div><br><div><br><br><span style="background-color: rgba(255, 255, 255, 0);">_,,,^..^,,,_ (phone)</span></div>On Dec 29, 2015, at 2:38 AM, Mariano Martinez Peck &lt;<a href="mailto:marianopeck@gmail.com">marianopeck@gmail.com</a>&gt; wrote:<br><br></div><blockquote type="cite"><div><span></span></div></blockquote><blockquote type="cite"><div><div dir="ltr"><div><span style="font-size:12.8px">Hi guys,</span></div><div><span style="font-size:12.8px"><br></span></div><div>I am checking&nbsp;UnixOSProcessPlugin &gt;&gt;&nbsp;primitiveForwardSignalToSemaphore and it seems it needs to do quite some work in order to place a signal handler for things like SIGCHLD in order to get a Smalltalk semaphore signaled upon receiving&nbsp;SIGCHLD or whatever&nbsp;signal.</div><div><br></div><div>So...I wonder...is there something today (nowadays) in latest VM that would allow me to set such a handler without such kind of primitive?</div></div></div></blockquote><div><br></div>No. &nbsp;You could use the FFI and a callback to call signal but since signal delivery is asynchronous it would cause havoc when the signal invoked the callback at an arbitrary time.<div><br><div>&nbsp;If signal handlers can be installed that deliver to a specific thread (ptherad_signal?) and you set it to deliver to some dedicated thread that is idling then the threaded FFI would manage the timing.</div><div><br></div><div>(&amp; running on bare metal as in SqueakNOS requires enable/disable interrupts to allow interrupt delivery at appropriate times)</div><div><br><blockquote type="cite"><div><div dir="ltr"><div><br></div><div>Thanks in advance,</div><div><br></div>-- <br><div class="gmail_signature">Mariano<br><a href="http://marianopeck.wordpress.com" target="_blank">http://marianopeck.wordpress.com</a><br></div>
</div>
</div></blockquote></div></div></body></html>