]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - scheduler/cups-exec.c
The cups-exec helper program could fail randomly on OS X due to sandbox
[thirdparty/cups.git] / scheduler / cups-exec.c
index 1541a785f019bd7b35696ef757d0238fc9c5b882..c90b648735eb982c5176de63264bb052a846f80d 100644 (file)
@@ -3,7 +3,7 @@
  *
  *   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
@@ -75,20 +75,6 @@ main(int  argc,                              /* I - Number of command-line args */
   }
 #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...
   */