ignore interrupted select

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@3182 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 1998-11-06 19:46:23 +00:00
parent e74ff8cf7b
commit e4906a1239

View file

@ -62,6 +62,7 @@
#include <Foundation/NSNotificationQueue.h>
#include <Foundation/NSRunLoop.h>
#include <Foundation/NSThread.h>
#include <Foundation/NSDebug.h>
#include <sys/types.h>
#ifndef __WIN32__
@ -1238,14 +1239,21 @@ static int debug_run_loop = 0;
printf ("\tNSRunLoop select returned %d\n", select_return);
if (select_return < 0)
{
if (errno == EINTR)
{
select_return = 0;
}
else
{
/* Some exceptional condition happened. */
/* xxx We can do something with exception_fds, instead of
aborting here. */
perror ("[TcpInPort receivePacketWithTimeout:] select()");
perror ("[NSRunLoop receivePacketWithTimeout:] select()");
abort ();
}
else if (select_return == 0)
}
if (select_return == 0)
{
NSFreeMapTable (rfd_2_object);
NSFreeMapTable (wfd_2_object);