From owner-freebsd-hackers Sun Aug 26 0:53:31 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from birch.ripe.net (birch.ripe.net [193.0.1.96]) by hub.freebsd.org (Postfix) with ESMTP id 2B56E37B406; Sun, 26 Aug 2001 00:53:24 -0700 (PDT) (envelope-from ms@laptop.6bone.nl) Received: from laptop.6bone.nl (penguin.ripe.net [193.0.1.232]) by birch.ripe.net (8.11.4/8.11.4) with SMTP id f7Q7rM605698; Sun, 26 Aug 2001 09:53:22 +0200 Received: (nullmailer pid 71121 invoked by uid 1000); Sun, 26 Aug 2001 07:53:21 -0000 Date: Sun, 26 Aug 2001 09:53:21 +0200 From: Mark Santcroos To: Mike Barcroft Cc: hackers@FreeBSD.ORG Subject: Re: Proposed Utility - detach(1) Message-ID: <20010826095321.A2037@laptop.6bone.nl> References: <20010824141955.B64018@coffee.q9media.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010824141955.B64018@coffee.q9media.com>; from mike@FreeBSD.ORG on Fri, Aug 24, 2001 at 02:19:55PM -0400 X-Handles: MS6-6BONE, MS18417-RIPE Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG [ replying to the total thread ] BSD/OS already has daemon(8) for years that just runs daemon(3). I don't think it is necessary to change nohup, and go with the way BSD/OS did it. Mark ps. the manpage: daemon(8) BSD System Manager's Manual daemon(8) NAME daemon - run detached from the controlling terminal SYNOPSIS daemon [-cf] command arguments ... DESCRIPTION The daemon utility detaches itself from the controlling terminal and exec(3)'s the program specified by its arguments. The options are as follows: -c Change the current working directory to the root (``/''). -f Redirect standard input, standard output and standard error to /dev/null. The daemon utility exits 1 if an error is returned by the daemon(3) li- brary routine, otherwise 0. If the command cannot be exec'd, an error message is displayed on standard error unless the -f flag is specified. On Fri, Aug 24, 2001 at 02:19:55PM -0400, Mike Barcroft wrote: > I would appreciate comments on the usefulness of a utility which would > allow one to detach a process from a TTY. I imagine the utility would > be very small and just call daemon(3) and execlp(3). > > Would a utility like this be useful? Is this functionality already > available in a system utility? > > > Best regards, > Mike Barcroft > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message -- Mark Santcroos RIPE Network Coordination Centre http://www.ripe.net/home/mark/ New Projects Group/TTM To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message