Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752440AbaK3RPR (ORCPT ); Sun, 30 Nov 2014 12:15:17 -0500 Received: from mail-ig0-f181.google.com ([209.85.213.181]:43397 "EHLO mail-ig0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752061AbaK3RPP (ORCPT ); Sun, 30 Nov 2014 12:15:15 -0500 MIME-Version: 1.0 In-Reply-To: <871tolysbb.fsf@mid.deneb.enyo.de> References: <1416546149-24799-1-git-send-email-gregkh@linuxfoundation.org> <1416546149-24799-2-git-send-email-gregkh@linuxfoundation.org> <871tolysbb.fsf@mid.deneb.enyo.de> Date: Sun, 30 Nov 2014 18:15:14 +0100 Message-ID: Subject: Re: kdbus: add documentation From: David Herrmann To: Florian Weimer Cc: Greg Kroah-Hartman , Arnd Bergmann , "Eric W. Biederman" , One Thousand Gnomes , Tom Gundersen , Jiri Kosina , Andy Lutomirski , Linux API , linux-kernel , Daniel Mack , Djalal Harouni Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi On Sun, Nov 30, 2014 at 10:02 AM, Florian Weimer 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/