Skip to contentSkip to conversation

system() call allowed from within RT task ?

Xenomai-help Jochen Behnke 2 participants 2 messages Apr 15, 2008

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 15 lines · Jochen Behnke

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.

Quoted 2 lines

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).

Signature · 1 line
					    Gilles.