[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-smalltalk] Re: closing a socket when using

From: Paolo Bonzini
Subject: [Help-smalltalk] Re: closing a socket when using
Date: Mon, 29 Dec 2008 11:30:14 +0100
User-agent: Thunderbird (Macintosh/20081105)

> My question is, how do I get the "server" script to terminate the
> session nicely when the client terminates.
> My client script is closing the socket, and then the server script does
> a dump like the one above each time.

Can you try this patch?

diff --git a/libgst/cint.c b/libgst/cint.c
index 931aa86..f5e8451 100644
--- a/libgst/cint.c
+++ b/libgst/cint.c
@@ -269,7 +269,8 @@ get_errno (void)
      the primitive still fails and the file/socket is closed by the
      Smalltalk code.  */
   if (old == ESHUTDOWN || old == ECONNRESET
-      || old == ECONNABORTED || old == ENETRESET)
+      || old == ECONNABORTED || old == ENETRESET
+      || old == EPIPE)
     return 0;
     return (old);

If you read you usually get one of the four errors already listed, but
if you write you might get an EPIPE instead (GNU Smalltalk operates with
SIGPIPE ignored).


reply via email to

[Prev in Thread] Current Thread [Next in Thread]