From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Cc: xenomai-core <xenomai@xenomai.org>
Subject: Re: [Xenomai-core] system() question
Date: Fri, 09 Feb 2007 15:33:05 +0100 [thread overview]
Message-ID: <45CC8621.3030709@domain.hid> (raw)
In-Reply-To: <45CC7E33.3020707@domain.hid>
Gilles Chanteperdrix wrote:
> Stéphane ANCELOT wrote:
>
>>I tried it, but did not help, I manged to do the trick using
>>start-stop-daemon
>
>
> If I understand correctly the problem you have, it is not related at all
> with Xenomai. What you want is to make your application a real daemon.
> The easy way to do this is to call the glibc function named "daemon" the
> hard way is to call fork twice, call setsid and setpgrp.
> start-stop-daemon will not do the trick.
>
It is enough to fork only once, to call setsid in the child and call
_exit in the father. That is what the daemon function does. Anyway, this
is basic unix knowledge, for which you will get more acurate details at
other places.
--
Gilles Chanteperdrix
prev parent reply other threads:[~2007-02-09 14:33 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-07 16:09 [Xenomai-core] system() question Stéphane ANCELOT
2007-02-07 15:40 ` Gilles Chanteperdrix
2007-02-08 8:39 ` Stéphane ANCELOT
2007-02-08 8:18 ` Gilles Chanteperdrix
2007-02-09 14:50 ` Stéphane ANCELOT
2007-02-09 13:59 ` Gilles Chanteperdrix
2007-02-09 14:33 ` Gilles Chanteperdrix [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=45CC8621.3030709@domain.hid \
--to=gilles.chanteperdrix@xenomai.org \
--cc=xenomai@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.