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 1998-11-06 19:46:23 +00:00
parent 5ab685e071
commit 30f7b9b0b8

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__
@ -1239,13 +1240,20 @@ static int debug_run_loop = 0;
if (select_return < 0)
{
/* Some exceptional condition happened. */
/* xxx We can do something with exception_fds, instead of
aborting here. */
perror ("[TcpInPort receivePacketWithTimeout:] select()");
abort ();
if (errno == EINTR)
{
select_return = 0;
}
else
{
/* Some exceptional condition happened. */
/* xxx We can do something with exception_fds, instead of
aborting here. */
perror ("[NSRunLoop receivePacketWithTimeout:] select()");
abort ();
}
}
else if (select_return == 0)
if (select_return == 0)
{
NSFreeMapTable (rfd_2_object);
NSFreeMapTable (wfd_2_object);