On 12/20/18 11:02 PM, Waldek Hebisch wrote:
> 
> EOF may appear in the middle of some date, so sending ")quit"
> is not the correct way.

This check happens when "read" returns 0, aka the whole input
is empty, so it doesn't affect the case of some date.

> Actually, with other bugs fixed
> we propbably could remove 'remote_stdio'.  And if you ask:
> 'sockio-c.c' is buggy, it should correctly handle long
> pieces of data (ATM it would crash or loose data).

Put ")quit" aside, the bug I'm talking about is when input
is empty, currently:

(1) -> ^D

   Cannot find a definition or applicable library operation named 1
      with argument type(s)
                                Variable(->)

      Perhaps you should use "@" to indicate the required return type,
      or "$" to specify which version of the function you need.


It seems when you issue "CTRL-D", the system receives "(1) ->".

> Simplest way of fixing bugs in 'sockio-c.c' is to change
> communication protocol between Hyperdoc/graphics and
> AXIOMsys.  But that requires fixing architectural problems
> first.

Since the architectural change will not happen soon, I suggest
to replace
        swrite(sock, ")quit", 5, "quitting");
with a simple
        return;

-- 
You received this message because you are subscribed to the Google Groups 
"FriCAS - computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/fricas-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to