Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp9902940rwp; Thu, 20 Jul 2023 11:22:32 -0700 (PDT) X-Google-Smtp-Source: APBJJlHOXQNBe40IMXMis/u6IqSpfPNZINYkcWdq3N/K/rNMbapHaD5n/vlRGYgW1/LHdCs6jRIv X-Received: by 2002:a05:6402:3551:b0:51e:85d7:2c79 with SMTP id f17-20020a056402355100b0051e85d72c79mr6656104edd.7.1689877351783; Thu, 20 Jul 2023 11:22:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689877351; cv=none; d=google.com; s=arc-20160816; b=LUE72tWZ7BGS2DE/v6NYvCp2eNFjvZYH0Tlq6/UY36vo0wMvdSu3MYas8H4EX2R4NQ 1Nymua/Jgnl+gV4Vc0CBYjk/1zkfeOvlUJs5Ybl32mEZHBHG0qCtmZfB5Fwr2FwDpx+c oq5r7wyuqt0IB6oHHbV+9kG0Yr4IKvrp+amEZLI4B9wOTgsHmNkuboWq/KjWnUgoKICM Ag/WdXAgucp/wCZTsfstRuahH+R4me2q9l9AcAT9o8ypDP311HaGN/WWKED9aEiy/kPx I7s5VntVZFtkQZyPN+8ORdSU2QhePGAZKx8aofJzxsfuB9cfPjwmg67JvqujR83dUdaP Xczw== 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=CDFrknzpf+dQCFatv7YuQwveK4aoP4IrvkuaEmESepo=; fh=KhHJAVplwQBVmEIfavT5RNTkFe9tmXYto0veDFleiBA=; b=KAu+YgA4F35cb2VyOxMKjkQn81CYcueC1ep2jbTrCz4ph2bsW6SBIA24yO6eGNQFGv 4w+xHKmV/Mo+bD/nXh2lDxkbAfMDTTDQhHQh41+iyQ7PnMITiRAHGBDr/7qlOO3/IiGU vf+LiCbcJ4Ufyz+WQHAJDeBXpntiK6vizcKVeCsvOlHMBIPBo/bQvnZHvnu/ouELxxAj Nf++8/UOfu9haLpidOWIzrgFdDLP6SsC+M+ghYH6HCOikmtRzckmaiGxv185gOZL1Wp7 bBgc7I1AeklrjZhSxkCSuZmnZepozVIqJlH4I3Pze5gBWNHIpnOiCGYHlDAHykof3fJT aoEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=OjXpvibw; 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 u25-20020aa7d899000000b00521d384e4e0si1141230edq.329.2023.07.20.11.22.07; Thu, 20 Jul 2023 11:22:31 -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=OjXpvibw; 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 S229603AbjGTSPl (ORCPT + 99 others); Thu, 20 Jul 2023 14:15:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54220 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229488AbjGTSPk (ORCPT ); Thu, 20 Jul 2023 14:15:40 -0400 Received: from mail-pg1-x535.google.com (mail-pg1-x535.google.com [IPv6:2607:f8b0:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A3ACD92 for ; Thu, 20 Jul 2023 11:15:39 -0700 (PDT) Received: by mail-pg1-x535.google.com with SMTP id 41be03b00d2f7-563643b20baso733318a12.1 for ; Thu, 20 Jul 2023 11:15:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689876939; x=1690481739; 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=CDFrknzpf+dQCFatv7YuQwveK4aoP4IrvkuaEmESepo=; b=OjXpvibwmXbN7dr536h1f3laD8OUN1y8kdvpn+taorwmzrztHrK21Tt2BTE9qOtHRg Wq0bSpMcVM7+KSDf2vyDxEnWe1c2Ib9rV6sJn6eeOcs3pFTfs/JW+LZK2dPoJXudMwmz XaFcARQFvdqXhz1ThpdqscbpKuNAYMKTfl9xXY4UpkgQzFrU0kAlMMNazcqWs4Bp2H29 DQedLhJz9T1YDoGVbTp+P+1dOoo4nyNcsQ6Mx1xIJkRgT3eD1tlb44QwanOOqn/ETK7a nY57gNgf/Dj2uSucStUcFCOg4p7wTMIcz4WHKAlr5HOI2wuY4J7QugUsiN3cAyf4pbO4 ok+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689876939; x=1690481739; 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=CDFrknzpf+dQCFatv7YuQwveK4aoP4IrvkuaEmESepo=; b=C49a/BmYg0ZEz3mCD2GvBY2j0drSmOo2RVlKuGIlkBv5fJz9PSpawgFPW0DFf/9cya yWzBjDl69DofHQTjylM8bHVxQKMfIM/hq9Fg7+qozO4fojo5CjDXALOVicSfn5wTV500 r8IjIhjq7kr10qmeYkWSxov2B+x6rzUM5449PKlCK2db1fjySlfdg+fZk0f8jbU0RJza Nv6QtxyaDG9hblAmalljf9gjJrfxTnb1shegAs1jMw5LUgDetzdwTJul7j8Nui+hTe2p AtHlR+ByKat3kqhoKVUkKauEb+rvH2mHX7QHAjCBCFOUmvJxkbIm/RrtMvE1ZB5Sd4nv g2QQ== X-Gm-Message-State: ABy/qLbMGDtD/LTyfCWVqPg50oJPEfjmQGm9qonzPIbmhxjEIC6c8Ubt EBox0eJuog4EPb8RjqqLt22zjfXUkCT0Z1Rd3+k= X-Received: by 2002:a17:90a:6949:b0:25e:a8ab:9157 with SMTP id j9-20020a17090a694900b0025ea8ab9157mr19205pjm.22.1689876939048; Thu, 20 Jul 2023 11:15:39 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Dynastic Space Date: Thu, 20 Jul 2023 21:15:27 +0300 Message-ID: Subject: Re: Daemonizing bluetoothd To: Luiz Augusto von Dentz 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 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