From owner-freebsd-bugs Thu Aug 23 3:40: 7 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 22A0437B411 for ; Thu, 23 Aug 2001 03:40:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f7NAe3Z36385; Thu, 23 Aug 2001 03:40:03 -0700 (PDT) (envelope-from gnats) Date: Thu, 23 Aug 2001 03:40:03 -0700 (PDT) Message-Id: <200108231040.f7NAe3Z36385@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: peter@taronga.com Subject: Re: misc/6320: Sometimes nohup isn't good enough. Reply-To: peter@taronga.com Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR misc/6320; it has been noted by GNATS. From: peter@taronga.com To: freebsd-gnats-submit@FreeBSD.org, peter@baileynm.com Cc: peter@taronga.com Subject: Re: misc/6320: Sometimes nohup isn't good enough. Date: 23 Aug 2001 10:34:27 -0000 Not exactly. If there was a daemon(1) it might be a duplicate of that, but not only isn't there a daemon(1), detach(1) predates daemon(3), 4.4BSD, and probably 4.3BSD... I first wrote it for Xenix-286 around 1985 to 1987. Which is why it's not using daemon(3) internally. I suppose you could write a daemon(1), or rewrite detach(1) to use daemon(3), but it's code in hand. Nobody has to rewrite anything. And it works and it's portable (it runs on Xenix-286, Zeus, SunOS 4, System V, Solaris, SCO, Tru64, and has done so for the past 15 years). A standalone daemonizing program is something that is needed, especially as we get more and more non-open-source software drifting into FreeBSDland both directly and via things like the Linux emulator. If you don't just grab this (again, as code in hand) at least whack out a workalike... though I don't think all the options of detach(1) can be implemented via daemon(1), and each one has been added as a direct result of user demand over the past 15 years. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message