violations when closing excess file descriptors (<rdar://problem/
14421943>)
The scheduler incorrectly did not use the kqueue interface on OS X.
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@11142
a1ca3aef-8c08-0410-bb20-
df032aa958be
-CHANGES.txt - 1.7rc1 - 2013-07-10
----------------------------------
+CHANGES.txt - 1.7.0 - 2013-07-16
+--------------------------------
+
+CHANGES IN CUPS V1.7.0
+
+ - The cups-exec helper program could fail randomly on OS X due to
+ sandbox violations when closing excess file descriptors
+ (<rdar://problem/14421943>)
+ - The scheduler incorrectly did not use the kqueue interface on OS X.
+
CHANGES IN CUPS V1.7rc1
*
* Sandbox helper for CUPS.
*
- * Copyright 2007-2012 by Apple Inc.
+ * Copyright 2007-2013 by Apple Inc.
*
* These coded instructions, statements, and computer programs are the
* property of Apple Inc. and are protected by Federal copyright
}
#endif /* HAVE_SANDBOX_H */
- /*
- * Close file descriptors we don't need (insurance):
- *
- * 0 = stdin
- * 1 = stdout
- * 2 = stderr
- * 3 = back-channel
- * 4 = side-channel
- * 5-N = unused
- */
-
- for (i = 5; i < 1024; i ++)
- close(i);
-
/*
* Execute the program...
*/
*
* Select abstraction functions for the CUPS scheduler.
*
- * Copyright 2007-2012 by Apple Inc.
+ * Copyright 2007-2013 by Apple Inc.
* Copyright 2006-2007 by Easy Software Products.
*
* These coded instructions, statements, and computer programs are the
*/
#include "cupsd.h"
-#undef HAVE_KQUEUE
#ifdef HAVE_EPOLL
# include <sys/epoll.h>