All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] system() call allowed from within RT task ?
@ 2008-04-15 12:26 Jochen Behnke
  2008-04-15 17:02 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 3+ messages in thread
From: Jochen Behnke @ 2008-04-15 12:26 UTC (permalink / raw)
  To: xenomai

Hello,

within my application I use system() calls from within a xenomai task.
Is this allowed ?

The reason I'm asking this, is the following:
In my application I have multiple xenomai tasks. One of them is time critical (Task_A).
An other (non time critical) xenomai task (Task_B) is used to pass data back
and forth between Task_A and normal linux tasks. Task_B uses the system()-call
to accomplish certain requests.
I have set the T_WARNSW for Task_A in order to get a SIGXCPU, whenever it switches
to secondary mode. As long as Task_B is not executing a sytem() call, everything is fine.
But when for example Task_B executes a system("cp -R dirA dirB") the application terminates
due to a SIGXCPU signal.

I'm using 
- Linux Kernel 2.6.17 (I-PIPE 1.5-02)
- Xenomai 2.3.0
- Celeron 600MHz System


Regards

Jochen
_________________________________________________________________________
In 5 Schritten zur eigenen Homepage. Jetzt Domain sichern und gestalten! 
Nur 3,99 EUR/Monat! http://www.maildomain.web.de/?mc=021114



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Xenomai-help] system() call allowed from within RT task ?
  2008-04-15 12:26 Jochen Behnke
@ 2008-04-15 17:02 ` Gilles Chanteperdrix
  0 siblings, 0 replies; 3+ messages in thread
From: Gilles Chanteperdrix @ 2008-04-15 17:02 UTC (permalink / raw)
  To: Jochen Behnke; +Cc: xenomai

Jochen Behnke wrote:
 > Hello,
 > 
 > within my application I use system() calls from within a xenomai task.
 > Is this allowed ?
 > 
 > The reason I'm asking this, is the following:
 > In my application I have multiple xenomai tasks. One of them is time critical (Task_A).
 > An other (non time critical) xenomai task (Task_B) is used to pass data back
 > and forth between Task_A and normal linux tasks. Task_B uses the system()-call
 > to accomplish certain requests.
 > I have set the T_WARNSW for Task_A in order to get a SIGXCPU, whenever it switches
 > to secondary mode. As long as Task_B is not executing a sytem() call, everything is fine.
 > But when for example Task_B executes a system("cp -R dirA dirB") the application terminates
 > due to a SIGXCPU signal.
 > 
 > I'm using 
 > - Linux Kernel 2.6.17 (I-PIPE 1.5-02)

I-pipe 1.5-02 is too old. only more recent I-pipe patches have the
necessary support to allow real-time applications to call fork (or
system).


-- 


					    Gilles.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Xenomai-help] system() call allowed from within RT task ?
@ 2008-04-15 19:17 Jochen Behnke
  0 siblings, 0 replies; 3+ messages in thread
From: Jochen Behnke @ 2008-04-15 19:17 UTC (permalink / raw)
  To: Gilles Chanteperdrix; +Cc: xenomai


> -----Ursprüngliche Nachricht-----
> Von: "Gilles Chanteperdrix" <gilles.chanteperdrix@xenomai.org>
> Gesendet: 15.04.08 19:02:58
> An: Jochen Behnke <JK.Behnke@domain.hid>
> CC: xenomai@xenomai.org
> Betreff: Re: [Xenomai-help] system() call allowed from within RT task ?

Hello Gilles,

thanks four your quick response. 
Which I-pipe/Xenomai version would you recommend ?
(probably the latest )

Regards
Jochen

> 
> Jochen Behnke wrote:
>  > Hello,
>  > 
>  > within my application I use system() calls from within a xenomai task.
>  > Is this allowed ?
>  > 
>  > The reason I'm asking this, is the following:
>  > In my application I have multiple xenomai tasks. One of them is time critical (Task_A).
>  > An other (non time critical) xenomai task (Task_B) is used to pass data back
>  > and forth between Task_A and normal linux tasks. Task_B uses the system()-call
>  > to accomplish certain requests.
>  > I have set the T_WARNSW for Task_A in order to get a SIGXCPU, whenever it switches
>  > to secondary mode. As long as Task_B is not executing a sytem() call, everything is fine.
>  > But when for example Task_B executes a system("cp -R dirA dirB") the application terminates
>  > due to a SIGXCPU signal.
>  > 
>  > I'm using 
>  > - Linux Kernel 2.6.17 (I-PIPE 1.5-02)
> 
> I-pipe 1.5-02 is too old. only more recent I-pipe patches have the
> necessary support to allow real-time applications to call fork (or
> system).
> 
> 
> -- 
> 
> 
> 					    Gilles.
> 


_____________________________________________________________________
Unbegrenzter Speicherplatz für Ihr E-Mail Postfach? Jetzt aktivieren!
http://freemail.web.de/club/landingpage.htm/?mc=025555



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-04-15 19:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-15 19:17 [Xenomai-help] system() call allowed from within RT task ? Jochen Behnke
  -- strict thread matches above, loose matches on Subject: below --
2008-04-15 12:26 Jochen Behnke
2008-04-15 17:02 ` Gilles Chanteperdrix

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.