Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Jan 2001 07:26:34 GMT
From:      Cliff Sarginson <cliff@raggedclown.net>
To:        Christopher Farley <chris@northernbrewer.com>, freebsd-questions@FreeBSD.ORG
Subject:   Re: Detatch process from terminal?
Message-ID:  <E14IQVm-000MDz-00@post.mail.nl.demon.net>

next in thread | raw e-mail | index | archive | help
> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E14IQVm-000MDz-00>