Page 1 of 1

[bug] (command-line nil) ?

Posted: Mon Apr 21, 2008 10:23 am
by newdep
Hi Lutz,

newlisp 9.3.8

>(command-line nil)
results in a 100% cpu load under linux

Posted: Mon Apr 21, 2008 2:42 pm
by Lutz
A program disabling the command line should never get there, but sit in a 'read-line' or other I/O statement waiting for input. If on the toplevel as last statement, it will basically hang in an empty loop. I inserted a sleep for this situation in tomorrows development release.

For a program using (command-line nil) the best would be to have an (exit) statement at the end of the file.

Posted: Mon Apr 21, 2008 5:56 pm
by newdep
aaaaa i remember now, ive asked this befor... Sorry ;-)