Skip to content
This repository was archived by the owner on Jun 9, 2020. It is now read-only.

Commit 36ee750

Browse files
committed
Use panic function if setsockopt fail
1 parent 248993e commit 36ee750

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/net/net.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ do_sendmsg(int sockfd, const struct l_msghdr *msg, int flags)
401401
int r = syswrap(setsockopt(sockfd, SOL_SOCKET, SO_NOSIGPIPE,
402402
(void*)&val, sizeof(val)));
403403
if (r < 0) {
404-
return r;
404+
panic("Noah cannot set SO_NOSIGPIPE option.");
405405
}
406406
}
407407

0 commit comments

Comments
 (0)