From owner-freebsd-hackers@FreeBSD.ORG Mon Feb 14 09:58:32 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A7A23106566B for ; Mon, 14 Feb 2011 09:58:32 +0000 (UTC) (envelope-from mwm@mired.org) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 6723B8FC12 for ; Mon, 14 Feb 2011 09:58:32 +0000 (UTC) Received: by iyb26 with SMTP id 26so4666853iyb.13 for ; Mon, 14 Feb 2011 01:58:31 -0800 (PST) Received: by 10.42.239.8 with SMTP id ku8mr4697961icb.34.1297675920748; Mon, 14 Feb 2011 01:32:00 -0800 (PST) Received: from bhuda.mired.org (three.mired.org [74.143.213.44]) by mx.google.com with ESMTPS id d13sm2234414ice.4.2011.02.14.01.31.50 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 14 Feb 2011 01:32:00 -0800 (PST) Date: Mon, 14 Feb 2011 04:31:43 -0500 From: Mike Meyer To: Ashish Mahamuni Message-ID: <20110214043143.7365eb0e@bhuda.mired.org> In-Reply-To: References: <20110214085349.GC3074@straylight.ringlet.net> Organization: Meyer Consulting X-Mailer: Claws Mail 3.7.7 (GTK+ 2.22.1; amd64-portbld-freebsd8.1) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAG1BMVEXguIzRkGnhyaz069mXhW0WHRnbrnR9WCQ6LB0CchNMAAACSUlEQVQ4jV2TQW7jMAxFGaPQOgQEdZaGMsgBrAvUA03dCxj1Uu4U2gfwQD7AGNax51NK07RcxXz6/CSl0Ij450vkPG1jzpIZM1UwDCl/xB14TWnNX8A00Qj5a0mnVFVbVUz4MeErea2HikSRqZzY894zwg9p2+/AtO8LzxFED+tNAUFeU29iFOLRxlZAcdo9A8wi8ZBMV4BKPde82Oxrvs6BTkulQIClte0DLFzzsKk9j1MBex8iUaP00Bd78S/muyFScrTXz6zLkEUxJp+SabQfNOs4f4Jpx5qSZ/304PWwlEWP1cOn/mJQR7EOD+uKhjcBLziuL7xoY5Xm+VFAUSw/LwwwsHEHxihpwV4EJH0xXRkbw1PkRw+X4pEuSJwBggqk+HEYKkiL5/74/nQkogigzQsAFrakxZyfw3wMIEEZPv4AWMfxwqE5GNxGaERjmH+PG8AE0L4/w9g0lsp1raLYAN5azQa+AOoO9NwcpFkTrG2VKNMNEL5UKUUAw34tha0z7onUG0oBoNtczE04GwFE3wCHc0ChezAJ6A1WMV81AtY7wDAJSlXwV+4cwBvsOsrQMRawfQEBz0deEZ7WNpV2szckIKo5VpDHDSDvF1GItwqqAlG01Hh50BGtVhuUkjkasg/14bYFGCgWg1fSWHvmOoJck2xdp9ZvZBHzDVTzX23TkrOn7qe5U2COEw5D4Vx3qEQpFY2Z/3QFnJxzp7YCmSMG19nOUoe869zZfOQb5ywQuWu0yCn5+8gxZz+BE7vG3j4/wbf4D/sXN9Wug1s7AAAAAElFTkSuQmCC Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Garrett Cooper , freebsd-hackers@freebsd.org Subject: Re: setsid not found on freebsd X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Feb 2011 09:58:32 -0000 On Mon, 14 Feb 2011 14:39:28 +0530 Ashish Mahamuni wrote: > Thanks for the reply !! > > Garrett, > Its a command available in Linux distros. Yup. The linux folks seem to have gone on a campaign to make many syscalls available as shell commands - this being one of them. > Peter, > I am not able to find "util-linux-ng" under my ports. Given that that's a linux package name, this isn't surprising. And if you did find such a package, there's a fair chance it would depend on the linux emulation software. Running a command in a new session has a number of implications, and without knowing exactly which of those are important for your application, it's hard to say exactly what you might do to get the desired result. > Anyways, I have found something called "detach", which eventually worked for > me. Glad you found something that works. Knowing that, I'd recommend trying the "daemon" command, as it's in the base instead of ports - if that matters to you. http://www.mired.org/consulting.html Independent Software developer/SCM consultant, email for more information. O< ascii ribbon campaign - stop html mail - www.asciiribbon.org