Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp9929778rwp; Thu, 20 Jul 2023 11:51:35 -0700 (PDT) X-Google-Smtp-Source: APBJJlEyWR+PJVC1dnSFaFHyt/5YMYMWdFnO0o2Rnc4BiiBZ4ox905gLeJw0EcCGucYbjy/bhTlt X-Received: by 2002:a05:6a20:491:b0:137:2204:4ea6 with SMTP id 17-20020a056a20049100b0013722044ea6mr50341pzc.27.1689879095549; Thu, 20 Jul 2023 11:51:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689879095; cv=none; d=google.com; s=arc-20160816; b=bA+4XTji9A0XWWPnf4m5s/qK3Z6wmzuPXP0Gay6v1iAoe/7WvoIedF3NTrjNP/0k5A h8n08KJblg4TSajTbnXnnW3zljjZX3dYy+0U4vaN2COnNK9UtFYDq2DoBL9DKFRZuTCt qSdtR7LVD6hgC0p1+TYAHI10Z4574OOdzuUIi1yoXkClc4FcDCebx3lsVdJfozMFGTt8 D38Z4Et7pGg2DZl9WLCA20J5cP8vrgM3Ne/fB/bbcGd8m/8oKVf9MVxJhbmfnHQwhKeu pqgzj3WeNiWsq0DhCXoU8YAPUdaMFYiUCxTqIfEbIrLTohhC33KpusBLrBeGzRdj9k2B eP7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=Gh2SpC2TfxCdtwRgRi/HnQ5srnGHVaVf506sjFM96CE=; fh=IY3C/LFdH/62Zk+8DuOSmaVKDZg8iYmqNziRNNJ6YbI=; b=H0On31VPATvgex5w/AnbZBtZcvq6C5F+09M/xfKOaXgt45fGRowT3mpMnT9gxt4nFv MnTyFPE+trCkKZJND/AP1zf3dD3X4VINTXMCmwhmok/BVt3d1ohZGcSepo9nkFR2NzJC AuhiJSXNiCc+7mPhbtvbBRFfD7ctRb5/PfCZGxsp2PkmNRoISvHDSjj8VQfDhXnF3DpW gCrZ1S78D5KiBIj5uVBajigkx9cLONePwPAdNjuFEwhHQOV9I5mlMXxO85yV1v/gjPVr 9znS3Zqrg2IRiir3+5hMqEqKj6UPZeJ8gHNOCe4Wit6QSJzNZFWhjWo0n3AzZzwNa+hW Y1SA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=rCWalSQU; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j4-20020a056a00174400b006786b7f4cc6si1514061pfc.296.2023.07.20.11.51.13; Thu, 20 Jul 2023 11:51:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=rCWalSQU; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229779AbjGTSd5 (ORCPT + 99 others); Thu, 20 Jul 2023 14:33:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38266 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229605AbjGTSd4 (ORCPT ); Thu, 20 Jul 2023 14:33:56 -0400 Received: from mail-lj1-x22b.google.com (mail-lj1-x22b.google.com [IPv6:2a00:1450:4864:20::22b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2C36FB7 for ; Thu, 20 Jul 2023 11:33:55 -0700 (PDT) Received: by mail-lj1-x22b.google.com with SMTP id 38308e7fff4ca-2b95d5ee18dso17345851fa.1 for ; Thu, 20 Jul 2023 11:33:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689878033; x=1690482833; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Gh2SpC2TfxCdtwRgRi/HnQ5srnGHVaVf506sjFM96CE=; b=rCWalSQUfAnOL3InLTWJSAj37z3fLtHAEqaPs25yHPlfL7e1tQcNlaTbzHOvS9liqz VGr302xX/WEbyAGfuKXlG8DsGRov64Rc+NrWRobqkCkfH8zxvZsLmhwD3hxTXiEUnJkr teNR9ht6i4f8p/eEvsjzpkqz1Z40s/WsTomRPwxvyzah+kbWelS6zP3Cvmtvuv+Rqa6/ /gjN5jx0cxi4o1gijoQyXcLOT1nD9y+7NmKmpTsQhtq6VyW3t1XDGn2q8rEISnAMLtGg 9gQ0zke7AjU1VDPzBUtV/LB6BNOzYswhQ+eYenh0vR+RfxDo97JjcExMpTVmne1dzCjB 2ftA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689878033; x=1690482833; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Gh2SpC2TfxCdtwRgRi/HnQ5srnGHVaVf506sjFM96CE=; b=QoFPxoEH5jeDt4xTeSoLKeRcjoftLlbgZtMh6l59hBi6Vzo7/GBVyav2+z6bdsiJT3 V2JkY+WBykb3wiboUfZV2qx61mL6T2akC+9ylcfW88i+6glmUvvBzhOVgOotGp+NrtXB Vvs3Mq2iuzBwqBd/OAvDyYKM2+lcnxeP6fBnGJ/52ryYGJvieFAoveE9Rekly2G1keui qSBGawppZLZAEEQxBvKBmJs4X/lQ7clUGB2ImC8MufugPt8wmstezJTkm+gtTILViW7L +LuMRrqsoQ3VnL4UUbVUSF1RbKYqsPK1GZXfWYRhjueqKCdC4uETurzqhHBeMHH6cYwU jyPw== X-Gm-Message-State: ABy/qLZ1wSkJucp6ErlIURZLzNR18Ohz42+cDmUrk/MnuErfN11YSbM8 s4WcscXDR0WUP8v0BG59X5g/grCKkdLnFPDdzOnoXAZl X-Received: by 2002:a2e:3a09:0:b0:2b6:f009:d1b with SMTP id h9-20020a2e3a09000000b002b6f0090d1bmr2790295lja.49.1689878033090; Thu, 20 Jul 2023 11:33:53 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Luiz Augusto von Dentz Date: Thu, 20 Jul 2023 11:33:40 -0700 Message-ID: Subject: Re: Daemonizing bluetoothd To: Dynastic Space Cc: linux-bluetooth@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi, Can't recall when we made the change to stop forking, but it has been a while bluetoothd has this behavior, doesn't procd handle processes that don't fork by themselves? How old is bluetoothd in OpenWRT that this is only showing up now? On Thu, Jul 20, 2023 at 11:15=E2=80=AFAM Dynastic Space wrote: > > Thank you for your reply. > So you are saying that you are relying on whatever service manager to > daemonize the process? I am compiling for OpenWRT which uses procd, > not systemd. > > On Thu, Jul 20, 2023 at 9:04=E2=80=AFPM Luiz Augusto von Dentz > wrote: > > > > Hi, > > > > On Thu, Jul 20, 2023 at 10:42=E2=80=AFAM Dynastic Space wrote: > > > > > > I am reading through the bluetoothd code for version 5.56, but I > > > cannot find the call that makes it into a daemon. I don't see a fork > > > or a daemon call. How is it turned to one? > > > I am compiling the code on an OpenWRT system. > > > > We don't call fork anymore, since most likely bluetoothd would be run > > as a systemd service I don't think it matters though. > > > > -- > > Luiz Augusto von Dentz --=20 Luiz Augusto von Dentz