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.



_______________________________________________
Xenomai-core mailing list
Xenomai-core@gna.org
https://mail.gna.org/listinfo/xenomai-core

Reply via email to