[Top][All Lists]

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

Re: Bug-gnubg] Winsock (Was: [Bug-gnubg] Multiprocessing)

From: Olivier Baur
Subject: Re: Bug-gnubg] Winsock (Was: [Bug-gnubg] Multiprocessing)
Date: Fri, 11 Jul 2003 20:06:03 +0200

I think you can #ifdef WIN32 out the PortableSignal (SIGPIPE, ...) calls -- these calls are used to disable SIGPIPE signals while reading or writing to sockets; these signals are sent when the connection is unexpectedly torn down (SIGPIPE = "signal broken pipe"); apparently, these signals do not exist in winsock, so no need to disable them...

-- Olivier

#ifdef WIN32
        PortableSignal( SIGPIPE, SIG_IGN, &sh, FALSE );
        n = read( h, p, cch );
#ifdef WIN32
        PortableSignalRestore( SIGPIPE, &sh );

(provided you have #defined read and write as proposed in one of my previous mail)

Le vendredi, 11 juil 2003, à 18:44 Europe/Paris, Holger a écrit :

At 19:54 10.07.2003 +0200, Nardy Pillards wrote:

external.c does not compile here.

I've fixed all errors except the ones because of the missing SIGPIPE.



reply via email to

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