Skip to content

Commit 716dbfc

Browse files
committed
remove none_blocking_, see #151
1 parent 47500ca commit 716dbfc

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

src/sockevent.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,6 @@ static const socket_t socket_invalid = -1;
3737

3838
#define closesocket close
3939

40-
static inline int
41-
none_blocking_(socket_t fd) {
42-
return fcntl(fd, F_SETFL, fcntl(fd, F_GETFL, 0) | O_NONBLOCK);
43-
}
44-
4540
static inline void sockevent_initsocket() {}
4641

4742
#endif
@@ -121,10 +116,6 @@ sockevent_open(struct sockevent *e) {
121116
int ok = socketpair(PF_UNIX, SOCK_STREAM, 0, e->pipe);
122117
if (ok != 0)
123118
goto _error;
124-
if (none_blocking_(e->pipe[0]) < 0)
125-
goto _error;
126-
if (none_blocking_(e->pipe[1]) < 0)
127-
goto _error;
128119
#endif
129120

130121
#ifdef SO_NOSIGPIPE

0 commit comments

Comments
 (0)