Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Feb 2011 04:31:43 -0500
From:      Mike Meyer <mwm@mired.org>
To:        Ashish Mahamuni <mahamuni.ashish@gmail.com>
Cc:        Garrett Cooper <yanegomi@gmail.com>, freebsd-hackers@freebsd.org
Subject:   Re: setsid not found on freebsd
Message-ID:  <20110214043143.7365eb0e@bhuda.mired.org>
In-Reply-To: <AANLkTine5zY-RsTJ0pY8AU4=-XvGpAuK1NR0w5ZpgWdH@mail.gmail.com>
References:  <AANLkTinR-rftR5vuRKab-0bs7D8wCFAX-5AiSDUEe7k5@mail.gmail.com> <AANLkTi=0n=tJtHw4bWK9Dmc1x0Tw5BgveMx9J6HgvbBe@mail.gmail.com> <20110214085349.GC3074@straylight.ringlet.net> <AANLkTine5zY-RsTJ0pY8AU4=-XvGpAuK1NR0w5ZpgWdH@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 14 Feb 2011 14:39:28 +0530
Ashish Mahamuni <mahamuni.ashish@gmail.com> 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.

   <mike
-- 
Mike Meyer <mwm@mired.org>		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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110214043143.7365eb0e>