chiark
/
gitweb
/
~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
split out dcgi_get_cookie
[disorder]
/
lib
/
syscalls.c
diff --git
a/lib/syscalls.c
b/lib/syscalls.c
index f05b644c37f825daf6a77c0ff895878c0015ed17..c398c93cacf586846dc821b6ada761b3e6337ff6 100644
(file)
--- a/
lib/syscalls.c
+++ b/
lib/syscalls.c
@@
-1,6
+1,6
@@
/*
* This file is part of DisOrder.
/*
* This file is part of DisOrder.
- * Copyright (C) 2004, 2005 Richard Kettlewell
+ * Copyright (C) 2004, 2005
, 2007, 2008
Richard Kettlewell
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@
-47,8
+47,9
@@
pid_t xfork(void) {
return pid;
}
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) {
}
void xdup2(int fd1, int fd2) {