mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Merge pull request #13415 from ANR2ME/adhocctl_fix
Avoid getting Fatal signal 6 (SIGABRT) on linux/android
This commit is contained in:
commit
9753e317f3
1 changed files with 4 additions and 0 deletions
|
@ -230,6 +230,10 @@ int IsSocketReady(int fd, bool readfd, bool writefd, int* errorcode, int timeout
|
|||
fd_set readfds, writefds;
|
||||
timeval tval;
|
||||
|
||||
// Avoid getting Fatal signal 6 (SIGABRT) on linux/android
|
||||
if (fd < 0)
|
||||
return SOCKET_ERROR;
|
||||
|
||||
FD_ZERO(&readfds);
|
||||
writefds = readfds;
|
||||
if (readfd) {
|
||||
|
|
Loading…
Add table
Reference in a new issue