fix(ipc): reject unconnected backlog clients

This commit is contained in:
2026-08-14 22:46:29 +09:00
parent a637f457f7
commit 8df43cecd8
2 changed files with 12 additions and 7 deletions

3
ipc.c
View File

@@ -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;