diff options
| author | Paul Eggert | 2013-07-16 21:37:27 -0700 |
|---|---|---|
| committer | Paul Eggert | 2013-07-16 21:37:27 -0700 |
| commit | b648c16370ca72e3b68678db41b29e62accb708c (patch) | |
| tree | a6d5dad9e4b7beb95c1957e56ca1498df93766e2 /src/process.c | |
| parent | b1dc4084264128eb303198f8b5cb6d70ee3b3034 (diff) | |
| download | emacs-b648c16370ca72e3b68678db41b29e62accb708c.tar.gz emacs-b648c16370ca72e3b68678db41b29e62accb708c.zip | |
A few more minor file errno-reporting bugs.
* callproc.c (Fcall_process):
* doc.c (Fsnarf_documentation):
* fileio.c (Frename_file, Fadd_name_to_file, Fmake_symbolic_link):
* process.c (set_socket_option):
Don't let a constructor trash errno.
* doc.c: Include <errno.h>.
Diffstat (limited to 'src/process.c')
| -rw-r--r-- | src/process.c | 7 |
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 | ||