Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp9943439rwp; Thu, 20 Jul 2023 12:04:30 -0700 (PDT) X-Google-Smtp-Source: APBJJlFo56JfXX6oHUz7VLW85dbKNGUENKKTp5C7/UerAzgV5V6PNsMiIgsVoVL1CESkIElgjQ24 X-Received: by 2002:a05:6a20:728a:b0:137:f985:f384 with SMTP id o10-20020a056a20728a00b00137f985f384mr514463pzk.0.1689879870319; Thu, 20 Jul 2023 12:04:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689879870; cv=none; d=google.com; s=arc-20160816; b=jYJ01zjd3TwAIqrxoElJKjhCBljwUAUaJeInfudnxmffe7qRSkaLR2P1uTWeLp9Fw9 fr4psFRGAjcUOXtYzEwqOnp590aEBAjBxlB5sg09PMaZanMFHd2WI+dn+XBEQ8VORqa2 OLD1ZT9S6XDx0EWYKFn05YMf7VEENHtqXVUXmwYC7ntqBEg4L5PbmD6JTIWtusQaohyU Qj7kYEc55Cz8EHYB8i3Rz6RkVcRvMhHzOoXzWqgHlVIoi1gkd66Q0GIV1zQ6pNdDLsyY HwNN4hHXyw9QfREpr4YEbOOJrKrz+6oiujMt85TErI/KisTJNWdjaOwXJLfjVh5faGe3 kbQg== 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=tIftydGUg1EFQwSJ2eN9pyxntaUW3R9pVea2a/5D2UA=; fh=KhHJAVplwQBVmEIfavT5RNTkFe9tmXYto0veDFleiBA=; b=yfH5Sj1pxB6HqcGKa2MM+/h8FZUzX3cKVYSANedrqg1BDxEQ1kXjHFNMNdaq8dDQWy s6IMjqnDEw5hCoFQ2MennuHcNYHGVsGahFHxsSI+3E3mzt6slP4zwZgqFzvRmkpC1AIT mhbZELpLL/Yzrc2+e8kBvKYtv2K+KRawMuGoJm93YxZw8IndfrHl8fds5hAJ5QDHKLhZ HPcEU38Awkc3bq9+jwu/V2q6buJCS2nIzQHBkqIbGwYLRDETiC4zrASjEjOJC7ATsAim jbqP/8/Yfc6uysnUXDFs242pZTMMsCOZyqPDaTUXV1PSITWaLADMMx3omeeVOSQvGFhF vA1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=c0+Fs90u; 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 t19-20020a056a0021d300b0066844d4ec59si1402937pfj.168.2023.07.20.12.04.07; Thu, 20 Jul 2023 12:04:30 -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=c0+Fs90u; 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 S229517AbjGTSu5 (ORCPT + 99 others); Thu, 20 Jul 2023 14:50:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229831AbjGTSu4 (ORCPT ); Thu, 20 Jul 2023 14:50:56 -0400 Received: from mail-oo1-xc35.google.com (mail-oo1-xc35.google.com [IPv6:2607:f8b0:4864:20::c35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B2B921734 for ; Thu, 20 Jul 2023 11:50:49 -0700 (PDT) Received: by mail-oo1-xc35.google.com with SMTP id 006d021491bc7-563531a3ad2so782338eaf.3 for ; Thu, 20 Jul 2023 11:50:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689879049; x=1690483849; 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=tIftydGUg1EFQwSJ2eN9pyxntaUW3R9pVea2a/5D2UA=; b=c0+Fs90u5BCBaXHjHgrhu+E5Ti17U9l1mhgmrC794Gcy59xUk3jzOisg80iXWMqtp4 3BAeU92xwLelcBm5xiIaN3Qv/4RZeaR0W4wU13SejHicnXx78MfmtDq24m9s9902WLIW F7IQkzIcgYuSd2NM9143I42+BvGNQ7PqJ3+Ss3JohvDRVCzdG7XX34bmhp3E2Oh6Km4e nYXRqs+ymxQW3eoW6KTr9LHQX1GxprGgp+/4hoQlyArfiHxAH4CnpKwCM4evab3Z7wuH 9mDG79RcaXMPZ6x1xa2QX20fDgwLk8Ovliq86aKxcex1S5kFR7RjTQVN3Igb+ffafFaw LSHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689879049; x=1690483849; 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=tIftydGUg1EFQwSJ2eN9pyxntaUW3R9pVea2a/5D2UA=; b=TCwSoOATmKYsRJYRDVd+RSqF22eJFoOkYToEl+8J2VsOqaYb9gkJCaJlwiqhZospR7 f7PNdChFhNQNUUVew7FJ4p8rn7uOJ+tKtvgnSkkAdBMaCSdTNTj/ayfIumRZLjMMl+az TiYdpYgk5S/6EdjskjRC4GpoTSgzia85FKw4j2t6nK8FImf3F3G/agbIW8nCJslpRUjU twaVBZRsY2cMpN5q2bm9huV++EwClM7Yi+ylVUpbyZU4dAyGLGBMdphWT6QiOxKRlV5Q gaDBAGnzCCU9ycCVbf+RoJcTt/lCtTfYIpdcMYy48PXPXaTsyVYU6p/wbdHNX3JJBBkj NSDA== X-Gm-Message-State: ABy/qLaAfdElCXj5a3Zw3XqPSdR2CQ4xaGZO5QK0YYk1q2s37/ZBKwKE Cq2XyjPD2ohS9tGnic9yahRpe6xef5mfFUMv6gbDbNii X-Received: by 2002:a05:6808:1496:b0:3a0:cc9a:820c with SMTP id e22-20020a056808149600b003a0cc9a820cmr333709oiw.59.1689879048982; Thu, 20 Jul 2023 11:50:48 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Dynastic Space Date: Thu, 20 Jul 2023 21:50:37 +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 The bluez version that I am using is 5.56. It's not that I had a problem: I just expected to see a daemon call, and when I hadn't I was surprised. Then I started suspecting that procd forks the process by itself, but I wasn't sure. Your answer clarifies things for me. Thanks! On Thu, Jul 20, 2023 at 9:33=E2=80=AFPM Luiz Augusto von Dentz wrote: > > 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 for= k > > > > 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 > > > > -- > Luiz Augusto von Dentz