~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Start of Unicode support rewrite
[disorder]
/
lib
/
syscalls.c
diff --git
a/lib/syscalls.c
b/lib/syscalls.c
index
f05b644
..
66c3d47
100644
(file)
--- a/
lib/syscalls.c
+++ b/
lib/syscalls.c
@@
-47,8
+47,9
@@
pid_t xfork(void) {
return pid;
}
-void xclose(int fd) {
- mustnotbeminus1("close", close(fd));
+void xclose_guts(const char *path, int line, int fd) {
+ if(close(fd) < 0)
+ fatal(errno, "%s:%d: close %d", path, line, fd);
}
void xdup2(int fd1, int fd2) {