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: Thu, 08 Feb 2007 08:39:30 +0000	[thread overview]
Message-ID: <45CAE1C2.5040207@domain.hid> (raw)
In-Reply-To: <45C9F2F9.3020204@domain.hid>

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

Gilles Chanteperdrix wrote:
> Stéphane ANCELOT wrote:
>> Is there a way to launch my realtime task from another linux program 
>> using system() C call ?
>>
>> I have tried it , but when system call dies my rt task dies too ...
>> any idea ?
> 
> Why does the system call die ? Do you observe the same behaviour with
> non xenomai applications ?
> 



  reply	other threads:[~2007-02-08  8:39 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 [this message]
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

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=45CAE1C2.5040207@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.