From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by befuddled.reisers.ca (Postfix, from userid 65534) id 37DCC1EFC49; Wed, 20 Jul 2016 20:07:36 -0400 (EDT) Received: from hurricane.the-brannons.com (hurricane.the-brannons.com [IPv6:2001:470:1:41:a800:ff:fe3e:bc77]) by befuddled.reisers.ca (Postfix) with ESMTP id D063C1EFB1B for ; Wed, 20 Jul 2016 20:07:34 -0400 (EDT) Received: from localhost (67-5-174-45.ptld.qwest.net [67.5.174.45]) by hurricane.the-brannons.com (Postfix) with ESMTPSA id C4F6677AA8 for ; Wed, 20 Jul 2016 17:05:30 -0700 (PDT) From: Chris Brannon To: "Speakup is a screen review system for Linux." Subject: Re: espeakup release coming soon References: <20160306185459.GA6674@linux1> <20160720233531.GC4169@var.home> Date: Wed, 20 Jul 2016 17:07:26 -0700 In-Reply-To: <20160720233531.GC4169@var.home> (Samuel Thibault's message of "Thu, 21 Jul 2016 01:35:31 +0200") Message-ID: <87oa5r26rl.fsf@mushroom.localdomain> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 X-BeenThere: speakup@linux-speakup.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "Speakup is a screen review system for Linux." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Jul 2016 00:07:36 -0000 Samuel Thibault writes: > currently espeakup uses daemon() to do the daemonizing stuff. > Unfortunately, daemon() does things not very appropriately, and there > is notably a delay between the parent exit()ing and the child writing > the pid file. Why not just use the -d option when starting espeakup? This causes it to stay in the foreground. No pid file is written, etc. The long option name is --debug. I'd argue that that is a bit of a misnomer, since all it really does is cause espeakup to stay in the foreground. Maybe it should have been called --dontfork instead. I thought systemd preferred non-forking daemons? Anyway, -d is what I use to run espeakup under runit, and it has worked well in practice for over a year. -- Chris