<div id="__MailbirdStyleContent" style="font-size: 10pt;font-family: Arial;color: #000000">Hi, there.<div class="mb_sig"></div><div><br></div><div>Is there a way to change Semaphore >> #terminateProcess that it would also terminate a process that has not run yet? Shout's background styling can leave many processes behind, waiting for semaphores that have long been forgotten. Here is a minimal example, extracted from Shout:</div><div><br></div><div><div>| m s |</div><div>m := Monitor new.</div><div>s := nil.</div><div><br></div><div>1000 timesRepeat: [</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>m critical: [</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>s ifNotNil: [s terminateProcess. s := nil] ].</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">       </span>m critical: [</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>s := Semaphore new.</div><div><span class="Apple-tab-span" style="white-space:pre">          </span>[s wait] fork.</div><div><span class="Apple-tab-span" style="white-space:pre">               </span>Processor yield "Important!"].</div><div>].</div><div><br></div><div>s terminateProcess.</div></div><div><br></div><div>***</div><div><br></div><div>After this code snipped, shouldn't be any new processes waiting for those semaphores... "Processor yield" is really necessary here...</div><div><br></div><div>Best,</div><div>Marcel</div></div>