All of lore.kernel.org
 help / color / mirror / Atom feed
* Maximum number of file descriptors that may be passed via SCM_RIGHTS
@ 2011-05-25 23:57 Sam Varshavchik
       [not found] ` <cone.1306367829.726700.9970.500-eRFusrvvrKWtZOM0fQ182pBYcbvojoGw@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Sam Varshavchik @ 2011-05-25 23:57 UTC (permalink / raw)
  To: linux-man-u79uwXL29TY76Z2rM5mHXA

[-- Attachment #1: Type: text/plain, Size: 421 bytes --]

Anyone knows if the maximum number of file descriptors that can be passed  
via SCM_RIGHTS is documented anywhere?

Up to at least 2.6.35, I could stuff as many as 255 file descriptors. Which  
sort of made sense.

I updated to Fedora 15, which is based on 2.6.38, and the maximum number of  
file descriptors I can stuff into a message seems to be 253. With 254,  
strace tells me that the kernel refuses with EINVAL.



[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Maximum number of file descriptors that may be passed via SCM_RIGHTS
       [not found] ` <cone.1306367829.726700.9970.500-eRFusrvvrKWtZOM0fQ182pBYcbvojoGw@public.gmane.org>
@ 2011-09-14  6:07   ` Michael Kerrisk
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Kerrisk @ 2011-09-14  6:07 UTC (permalink / raw)
  To: Sam Varshavchik; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA

Hello Sam,

On Thu, May 26, 2011 at 1:57 AM, Sam Varshavchik <mrsam-W1w4QoW4mIDgLSHwZvcCBg@public.gmane.org> wrote:
> Anyone knows if the maximum number of file descriptors that can be passed
> via SCM_RIGHTS is documented anywhere?
>
> Up to at least 2.6.35, I could stuff as many as 255 file descriptors. Which
> sort of made sense.
>
> I updated to Fedora 15, which is based on 2.6.38, and the maximum number of
> file descriptors I can stuff into a message seems to be 253. With 254,
> strace tells me that the kernel refuses with EINVAL.

No info on this sorry. Let me know if you determine(d) the details.

Cheers,

Michael


-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Author of "The Linux Programming Interface"; http://man7.org/tlpi/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-09-14  6:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-25 23:57 Maximum number of file descriptors that may be passed via SCM_RIGHTS Sam Varshavchik
     [not found] ` <cone.1306367829.726700.9970.500-eRFusrvvrKWtZOM0fQ182pBYcbvojoGw@public.gmane.org>
2011-09-14  6:07   ` Michael Kerrisk

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.