From owner-freebsd-questions Mon Jan 15 23:26:54 2001 Delivered-To: freebsd-questions@freebsd.org Received: from post.mail.nl.demon.net (post-11.mail.nl.demon.net [194.159.73.21]) by hub.freebsd.org (Postfix) with ESMTP id 208CF37B401 for ; Mon, 15 Jan 2001 23:26:35 -0800 (PST) Received: from [195.11.243.26] (helo=Debug) by post.mail.nl.demon.net with smtp (Exim 3.14 #4) id 14IQVm-000MDz-00; Tue, 16 Jan 2001 07:26:34 +0000 To: Christopher Farley , freebsd-questions@FreeBSD.ORG From: Cliff Sarginson Subject: Re: Detatch process from terminal? Date: Tue, 16 Jan 2001 07:26:34 GMT X-Mailer: www.webmail.nl.demon.net X-Sender: postmaster@btvs.demon.nl X-Originating-IP: 192.250.24.58 Message-Id: Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Hopefully a simple question: > > Some processes can be launched from an shell, such as vim (and I presume > emacs) so that PID 1 (init) is the parent of the process, and not the > shell that launches it. Why on earth would you want to do this with vi ? Near to useless I would think ! > > Is there a shell command that will cause init to fork the new process > instead of the shell? You are misunderstaning a few things here. Init inherits processes whose parent process dies, or who detach themselves from the parent, this can be done explicitly in the program code. There is almost certainly a wrapper that will cause this to happen .. it's name I do not know. Running a program nohup in the background from your login shell and logging out will work a treat ! > Is this the technical definition of a daemon? Probably. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message