HCoop
/
bpt
/
emacs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix races with threads and file descriptors.
[bpt/emacs.git]
/
src
/
unexmacosx.c
diff --git
a/src/unexmacosx.c
b/src/unexmacosx.c
index
2bc6de1
..
87848b0
100644
(file)
--- a/
src/unexmacosx.c
+++ b/
src/unexmacosx.c
@@
-1332,7
+1332,7
@@
unexec (const char *outfile, const char *infile)
outfd = emacs_open (outfile, O_WRONLY | O_TRUNC | O_CREAT, 0755);
if (outfd < 0)
{
- close (infd);
+
emacs_
close (infd);
unexec_error ("cannot open output file `%s'", outfile);
}
@@
-1346,7
+1346,7
@@
unexec (const char *outfile, const char *infile)
dump_it ();
- close (outfd);
+
emacs_
close (outfd);
}