From owner-freebsd-hackers Fri Aug 24 15:51:59 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from fw.abbnm.com (fw.baileynm.com [206.109.159.11]) by hub.freebsd.org (Postfix) with ESMTP id 6EBF237B40C; Fri, 24 Aug 2001 15:51:56 -0700 (PDT) (envelope-from peter@abbnm.com) Received: from web.nmti.com (web.nmti.com [198.178.0.201]) by fw.abbnm.com (Postfix) with SMTP id 274F218C90; Fri, 24 Aug 2001 17:51:55 -0500 (CDT) Received: from grendel.eng.baileynm.com (grendel.eng.baileynm.com [198.178.0.150]) by web.nmti.com (8.6.12/8.6.9) with ESMTP id RAA25314; Fri, 24 Aug 2001 17:51:54 -0500 Received: by grendel.eng.baileynm.com (8.8.8/1.1.22.3/22Mar00-0700PM) id RAA0000008360; Fri, 24 Aug 2001 17:51:54 -0500 (CDT) From: Peter da Silva Message-Id: <200108242251.RAA0000008360@grendel.eng.baileynm.com> Subject: Re: Proposed Utility - detach(1) In-Reply-To: <3B86D55E.A9BB0815@digisle.net> from Maksim Yevmenkin at "Aug 24, 2001 03:29:50 pm" To: Maksim Yevmenkin Date: Fri, 24 Aug 2001 17:51:54 -0500 (CDT) Cc: chris@calldei.com, Mike Barcroft , hackers@FreeBSD.ORG, Peter da Silva X-Mailer: ELM [version 2.4ME+ PL61 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 > what you probably want to do is: > > % nohup sleep 5 & > > to make sure that proccess is still alive if you logout. This discussion is referring to a program I wrote over a decade ago that actually creates a new process group and runs the programs under it, because nohup is not always good enough. Much software does its own signal handling, and quite often implements it incorrectly so that the signals ignore by nohup are trapped and handled. The only way in the general case to ensure a program remains unaffected by terminal control signals, if you don't have the source, is to use a program like this. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message