Re: kdbus: add documentation

From: David Herrmann
Date: Sun Nov 30 2014 - 12:15:23 EST


Hi

On Sun, Nov 30, 2014 at 10:02 AM, Florian Weimer <fw@xxxxxxxxxxxxx> wrote:
> * Greg Kroah-Hartman:
>
>> +7.4 Receiving messages
>
>> +Also, if the connection allowed for file descriptor to be passed
>> +(KDBUS_HELLO_ACCEPT_FD), and if the message contained any, they will be
>> +installed into the receiving process after the KDBUS_CMD_MSG_RECV ioctl
>> +returns. The receiving task is obliged to close all of them appropriately.
>
> What happens if this is not possible because the file descriptor limit
> of the processes would be exceeded? EMFILE, and the message will not
> be received?

The message is returned without installing the FDs. This is signaled
by EMFILE, but a valid pool offset.

Thanks
David
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/