From patchwork Mon May 1 23:47:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Elias Naur X-Patchwork-Id: 18580 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id 8BA77BDCBD for ; Mon, 1 May 2023 23:47:56 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id CA2EE633B4; Tue, 2 May 2023 01:47:55 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1682984875; bh=7qTXN4QzxAXIa0bfUy0nF43BLRXGlf6PPNoMvPNmuxo=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=r1P7p2D1Mgv42czK+jYNNU5LAZebI3oX3+XcHNtjs5M7sffViRfQ21Hinvq4g4V8h yrFsZ1MJfTWtGsFUp7D5QJvsEy+AqLmLS3rEVy+MFULbyW0+9jA6iQVg5PNVBu4NKQ yVW+QBoqiqL9A1AYHnHEuAmBX2dNPENx2DBU9NLkI3Su1fMoMtHmuOp162P6y6AE8t ZndxvkQfqVSsKdd3dHGCSHI5YFKszYOvXaPRuAb7XEmnsCvAP8Dkppbkko8GcJA/dF 7TgZn0sxbFW0d0VEDOaEpbvmnfUEvgb66GSUwebzZlsL9DqHaeJJn+g0TpJ7JziXLm P3NlBPwY2wGQw== Received: from mail-vk1-xa2f.google.com (mail-vk1-xa2f.google.com [IPv6:2607:f8b0:4864:20::a2f]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 41C67627CD for ; Tue, 2 May 2023 01:47:53 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (2048-bit key; unprotected) header.d=eliasnaur.com header.i=@eliasnaur.com header.b="SBzuTkAS"; dkim-atps=neutral Received: by mail-vk1-xa2f.google.com with SMTP id 71dfb90a1353d-4404c9d9fceso1072804e0c.2 for ; Mon, 01 May 2023 16:47:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eliasnaur.com; s=google; t=1682984871; x=1685576871; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=JT9F/2a8QX+P9KkPR12/eW/Gl6eMWGffTCP5W8R4ygA=; b=SBzuTkAStcfgjkGys2kLm6vDjz/7/C/XYPRYkIsDz4t+gRXtIz3dmuz6EqVCLZum9n ddkozjrz/xgHnvYi7YJWKD5JkZI+rLWPBN1qto3w3vHt+HD3b0XvZm1eCua/IE/E7p0n MjrU2JRwRCcHugE2w3XoEREfvlNNP4iypS+Z0qjiDiqIZhfb7Cf3QtFJ0qWZbHl2uy+m HvMcNOvi96vs2auQUopa8P/c5emzQpgXr/T5S7+nXfhNjITwNyctg/BbX3xFfJ52o4lk ahK2JiPOdquAZ9cjvrPfP+QRFj4jJiLquNx8Q2zLQUKwwph+F/tIw4sJNbeA7X+HM1Tm FOMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682984871; x=1685576871; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=JT9F/2a8QX+P9KkPR12/eW/Gl6eMWGffTCP5W8R4ygA=; b=G+bVCpWtblI3Iln3WpVksoLTpHcw4IPTbB9dlxtFtuolKEQTkUAytIGajA4H6oFJYA 8yt85T8s4WPjO8OcvOLZkERFq/htsazrp7vam8bCq5haO3T1lopnCWT0+hKfILqwa06d WWCoHpdhI7R2R1qsgzQOJmf004+7zf5OfxREgKdKi2ZEO0IGyxvc+atNVKP91CBVoBvG 0A8RVKD+ApGgKmITN+/mQQDRSJtkJk7pYamRhtqlqFb/SbOZ/Z00raU9+ACsfwglm4YI Z5ag9fKNbCA4je2KkI7lgmU1DXI1K4ALsq8AzKL48JvfHhpca6saA9jeoeuyO5i/u7DW ZUWA== X-Gm-Message-State: AC+VfDyGlf49F8I10wnilnVCbEEdS3PKPjOcs4UciR5T+bzooXyaQCRk uh2E7xnkJnYYBdO0bQ30LW4kis/ruftzHwRwCGw= X-Google-Smtp-Source: ACHHUZ4WsfNWv7R6yjCoX4R2W4PAdi/zTly60Z935e3biGd919sxkFkJD9jhr6UfLJr7ekhvEIwg8A== X-Received: by 2002:a05:6102:210:b0:430:6cf6:ddbe with SMTP id z16-20020a056102021000b004306cf6ddbemr5622399vsp.9.1682984871638; Mon, 01 May 2023 16:47:51 -0700 (PDT) Received: from localhost.localdomain ([190.53.13.8]) by smtp.gmail.com with ESMTPSA id e24-20020ab01698000000b007714fbc9795sm5319161uaf.20.2023.05.01.16.47.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 May 2023 16:47:51 -0700 (PDT) To: libcamera-devel@lists.libcamera.org Date: Mon, 1 May 2023 17:47:34 -0600 Message-Id: <20230501234734.43869-1-mail@eliasnaur.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH] libcamera: Add missing O_CLOEXEC flag X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Elias Naur via libcamera-devel From: Elias Naur Reply-To: Elias Naur Cc: Elias Naur Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Missed in commit 436b38fd89fe4324d2342084ef477a7a8809a001. Signed-off-by: Elias Naur Signed-off-by: Elias Naur Reviewed-by: Kieran Bingham Reviewed-by: Laurent Pinchart --- src/libcamera/v4l2_videodevice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libcamera/v4l2_videodevice.cpp b/src/libcamera/v4l2_videodevice.cpp index 1051997e..a72ef64d 100644 --- a/src/libcamera/v4l2_videodevice.cpp +++ b/src/libcamera/v4l2_videodevice.cpp @@ -1471,7 +1471,7 @@ UniqueFD V4L2VideoDevice::exportDmabufFd(unsigned int index, expbuf.type = bufferType_; expbuf.index = index; expbuf.plane = plane; - expbuf.flags = O_RDWR; + expbuf.flags = O_CLOEXEC | O_RDWR; ret = ioctl(VIDIOC_EXPBUF, &expbuf); if (ret < 0) {