mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-29 16:01:38 +00:00
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:
parent
5ab685e071
commit
30f7b9b0b8
1 changed files with 14 additions and 6 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue