changeset: 2275:424cd73ecece
tag: tip
user: Kris Maglione <jg_AT_suckless.org>
date: Sun Feb 03 16:57:36 2008 -0500
summary: s/F_SETFL/F_SETFD/. Fix old instances of wmiir hanging around.
diff -r 9f53f1ee8d04 -r 424cd73ecece cmd/wmii/main.c
--- a/cmd/wmii/main.c Sun Feb 03 15:17:08 2008 -0500
+++ b/cmd/wmii/main.c Sun Feb 03 16:57:36 2008 -0500
@@ -214,7 +214,8 @@ cleanup_handler(int signal) {
static void
closeexec(int fd) {
- fcntl(fd, F_SETFL, FD_CLOEXEC);
+ if(fcntl(fd, F_SETFD, FD_CLOEXEC) == -1)
+ fatal("can't set %d close on exec: %r", fd);
}
static int
Received on Sun Feb 03 2008 - 23:01:58 UTC
This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:59:16 UTC