aboutsummaryrefslogtreecommitdiffstats
path: root/src/process.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/process.c')
-rw-r--r--src/process.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/process.c b/src/process.c
index 42a625b7e55..7c63964aee6 100644
--- a/src/process.c
+++ b/src/process.c
@@ -2321,7 +2321,12 @@ set_socket_option (int s, Lisp_Object opt, Lisp_Object val)
2321 } 2321 }
2322 2322
2323 if (ret < 0) 2323 if (ret < 0)
2324 report_file_error ("Cannot set network option", list2 (opt, val)); 2324 {
2325 int setsockopt_errno = errno;
2326 report_file_errno ("Cannot set network option", list2 (opt, val),
2327 setsockopt_errno);
2328 }
2329
2325 return (1 << sopt->optbit); 2330 return (1 << sopt->optbit);
2326} 2331}
2327 2332