[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CACSP8SjXGMk2_kX_+RgzqqQwqKernvF1Wt3K5tw991W5dfAnCA@mail.gmail.com>
Date: Tue, 2 Jul 2013 15:22:08 -0700
From: Erik Gilling <konkers@...roid.com>
To: Yann Droneaud <ydroneaud@...eya.com>,
Colin Cross <ccross@...gle.com>
Cc: "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
devel@...verdev.osuosl.org
Subject: Re: [PATCH 05/13] android/sync: use get_unused_fd_flags(0) instead of get_unused_fd()
On Tue, Jul 2, 2013 at 9:39 AM, Yann Droneaud <ydroneaud@...eya.com> wrote:
> static long sync_fence_ioctl_merge(struct sync_fence *fence, unsigned long arg)
> {
> - int fd = get_unused_fd();
> + int fd = get_unused_fd_flags(0);
I think we should use O_CLOEXEC here. Colin and I can't think of any
case where one would want keep fences across exec.
Cheers,
Erik
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists