From 2101e3b42eaacb7ea98cf549c4553dafdb10126a Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sat, 19 Jan 2008 14:37:09 +0100 Subject: [PATCH] dccp_senc.c: Check return value of mark_fd_nonblocking(). --- dccp_send.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dccp_send.c b/dccp_send.c index 0410c8bc..9de618b2 100644 --- a/dccp_send.c +++ b/dccp_send.c @@ -98,8 +98,12 @@ static int dccp_open(void) if (ret < 0) return ret; listen_fd = ret; + ret = mark_fd_nonblocking(listen_fd); + if (ret < 0) { + PARA_EMERG_LOG("%s\n", para_strerror(-ret)); + exit(EXIT_FAILURE); + } add_close_on_fork_list(listen_fd); - mark_fd_nonblocking(listen_fd); return 1; } -- 2.39.5