All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Stéphane ANCELOT" <sancelot@domain.hid>
To: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Cc: xenomai-core <xenomai@xenomai.org>
Subject: Re: [Xenomai-core] system() question
Date: Fri, 09 Feb 2007 14:50:01 +0000	[thread overview]
Message-ID: <45CC8A19.6080109@domain.hid> (raw)
In-Reply-To: <17866.56537.695811.3523@domain.hid>

I tried it, but did not help, I manged to do the trick using 
start-stop-daemon

Gilles Chanteperdrix wrote:
> Stéphane ANCELOT wrote:
>  > my linux user task uses a system() call in order to call a bash script 
>  > to restart the realtime task as follow :
>  > 
>  > user interface C call :
>  > system("restart_task.sh");
>  > give back hand to user interface
>  > ....
>  > 
>  > 
>  > 
>  > 
>  > bash script restart_task.sh :
>  > killall -15 mytask
>  > sleep 2
>  > mytask &
>  > 
>  > 
>  > system call dies because sh script has been launched
> 
> Try calling daemon(0,0) in mytask instead of using "&" to make it run in
> the background.
> 



  reply	other threads:[~2007-02-09 14:50 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 [this message]
2007-02-09 13:59         ` Gilles Chanteperdrix
2007-02-09 14:33           ` Gilles Chanteperdrix

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=45CC8A19.6080109@domain.hid \
    --to=sancelot@domain.hid \
    --cc=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.