]> Git Repo - linux.git/commitdiff
avoid OPEN_MAX in SCM_MAX_FD
authorRoland McGrath <[email protected]>
Tue, 17 Jul 2007 11:03:48 +0000 (04:03 -0700)
committerLinus Torvalds <[email protected]>
Tue, 17 Jul 2007 17:23:03 +0000 (10:23 -0700)
The OPEN_MAX constant is an arbitrary number with no useful relation to
anything.  Nothing should be using it.  SCM_MAX_FD is just an arbitrary
constant and it should be clear that its value is chosen in net/scm.h
and not actually derived from anything else meaningful in the system.

Signed-off-by: Roland McGrath <[email protected]>
Cc: "David S. Miller" <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
include/net/scm.h

index 5637d5e22d5ff76012daf46ba30e04546d24a5bd..423cb1d5ac2530dcd4a742f286b7d416be6b8f6e 100644 (file)
@@ -8,7 +8,7 @@
 /* Well, we should have at least one descriptor open
  * to accept passed FDs 8)
  */
-#define SCM_MAX_FD     (OPEN_MAX-1)
+#define SCM_MAX_FD     255
 
 struct scm_fp_list
 {
This page took 0.056803 seconds and 4 git commands to generate.