<br><div class="gmail_quote">On Wed, Aug 10, 2011 at 5:58 AM, Mark Cave-Ayland <span dir="ltr"><<a href="mailto:mark.cave-ayland@siriusit.co.uk" target="_blank">mark.cave-ayland@siriusit.co.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div>On 09/08/11 22:55, William Hahne wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
BootX will sometimes set the stdout variable to null and then<br>
subsequently call io-emit which can eventually result in an infinite loop.<br>
<br>
Index: forth/admin/iocontrol.fs<br>
==============================<u></u>==============================<u></u>=======<br>
--- forth/admin/iocontrol.fs (revision 1041)<br>
+++ forth/admin/iocontrol.fs (working copy)<br>
@@ -80,6 +80,7 @@<br>
  ;<br>
  : io-emit ( char -- )<br>
+  stdout @ 0= if drop exit then \ make sure stdout pointer is not null<br>
    io-out-char c!<br>
    io-out-char 1 " write" stdout @ $call-method drop<br>
  ;<br>
</blockquote>
<br></div></div>
Hmmm isn't this just hiding another bug which is that the stdout variable/defer is being set?<br>
<br></blockquote><div><br></div><div>I think it is a bug in BootX (at least I would call it a bug.) Modifying BootX isn't a particularly realistic option so the workaround is necessary.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<br>
ATB,<br>
<br>
Mark.<br>
<br>
-- <br>
Mark Cave-Ayland - Senior Technical Architect<br>
PostgreSQL - PostGIS<br>
Sirius Corporation plc - control through freedom<br>
<a href="http://www.siriusit.co.uk" target="_blank">http://www.siriusit.co.uk</a><br>
t: <a href="tel:%2B44%20870%20608%200063" value="+448706080063" target="_blank">+44 870 608 0063</a><br>
<br>
Sirius Labs: <a href="http://www.siriusit.co.uk/labs" target="_blank">http://www.siriusit.co.uk/labs</a><br><font color="#888888">
<br>
-- <br>
OpenBIOS                 <a href="http://openbios.org/" target="_blank">http://openbios.org/</a><br>
Mailinglist:  <a href="http://lists.openbios.org/mailman/listinfo" target="_blank">http://lists.openbios.org/<u></u>mailman/listinfo</a><br>
Free your System - May the Forth be with you<br></font></blockquote><div><br></div><div>William Hahne </div></div><br>