fix(ipc): reject unconnected backlog clients
This commit is contained in:
3
ipc.c
3
ipc.c
@@ -183,8 +183,7 @@ ipcconnect(void)
|
||||
if(until < 0)
|
||||
goto Bad;
|
||||
if(connect(fd, (struct sockaddr*)&addr, sizeof addr) < 0){
|
||||
if(errno != EINPROGRESS && errno != EALREADY && errno != EINTR &&
|
||||
errno != EAGAIN && errno != EWOULDBLOCK)
|
||||
if(errno != EINPROGRESS && errno != EALREADY && errno != EINTR)
|
||||
goto Bad;
|
||||
if(waitfd(fd, POLLOUT, until) < 0)
|
||||
goto Bad;
|
||||
|
||||
Reference in New Issue
Block a user