projects
/
paraslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf94a86
)
dccp_senc.c: Check return value of mark_fd_nonblocking().
author
Andre Noll
<maan@systemlinux.org>
Sat, 19 Jan 2008 13:37:09 +0000
(14:37 +0100)
committer
Andre Noll
<maan@systemlinux.org>
Sat, 19 Jan 2008 13:37:09 +0000
(14:37 +0100)
dccp_send.c
patch
|
blob
|
history
diff --git
a/dccp_send.c
b/dccp_send.c
index
0410c8b
..
9de618b
100644
(file)
--- 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;
}