* [Xenomai] Round-robin "unknown error -3" @ 2014-05-05 10:04 mobin Motallebizadeh 2014-05-05 10:41 ` Gilles Chanteperdrix 2014-05-05 10:43 ` Philippe Gerum 0 siblings, 2 replies; 4+ messages in thread From: mobin Motallebizadeh @ 2014-05-05 10:04 UTC (permalink / raw) To: xenomai@xenomai.org I used the "round-robin-example.c" and got the "round-robin-example-output".the first task returns 0 (success) and works correctlyothers return -3.what am I doing wrong.thanks in advance -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: round-robin-example-output.txt URL: <http://www.xenomai.org/pipermail/xenomai/attachments/20140505/9b3cd629/attachment.txt> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: round-robin-example.c.txt URL: <http://www.xenomai.org/pipermail/xenomai/attachments/20140505/9b3cd629/attachment-0001.txt> ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Xenomai] Round-robin "unknown error -3" 2014-05-05 10:04 [Xenomai] Round-robin "unknown error -3" mobin Motallebizadeh @ 2014-05-05 10:41 ` Gilles Chanteperdrix 2014-05-05 10:43 ` Philippe Gerum 1 sibling, 0 replies; 4+ messages in thread From: Gilles Chanteperdrix @ 2014-05-05 10:41 UTC (permalink / raw) To: mobin Motallebizadeh, xenomai@xenomai.org On 05/05/2014 12:04 PM, mobin Motallebizadeh wrote: > I used the "round-robin-example.c" and got the > "round-robin-example-output".the first task returns 0 (success) and > works correctlyothers return -3.what am I doing wrong.thanks in > advance rt_task_slice return value is 0 if successful and a negative error in case of error. So, you should pass -err to strerror, not err. -- Gilles. ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Xenomai] Round-robin "unknown error -3" 2014-05-05 10:04 [Xenomai] Round-robin "unknown error -3" mobin Motallebizadeh 2014-05-05 10:41 ` Gilles Chanteperdrix @ 2014-05-05 10:43 ` Philippe Gerum 2014-05-07 8:40 ` mobin Motallebizadeh 1 sibling, 1 reply; 4+ messages in thread From: Philippe Gerum @ 2014-05-05 10:43 UTC (permalink / raw) To: mobin Motallebizadeh, xenomai@xenomai.org On 05/05/2014 12:04 PM, mobin Motallebizadeh wrote: > I used the "round-robin-example.c" and got the "round-robin-example-output".the first task returns 0 (success) and works correctlyothers return -3.what am I doing wrong.thanks in advance -ESRCH, unknown task. Your demo task exits after 200 ms runtime. -- Philippe. ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Xenomai] Round-robin "unknown error -3" 2014-05-05 10:43 ` Philippe Gerum @ 2014-05-07 8:40 ` mobin Motallebizadeh 0 siblings, 0 replies; 4+ messages in thread From: mobin Motallebizadeh @ 2014-05-07 8:40 UTC (permalink / raw) To: xenomai@xenomai.org > Date: Mon, 5 May 2014 12:43:38 +0200 > From: rpm@xenomai.org > To: mobin.seven@live.com; xenomai@xenomai.org > Subject: Re: [Xenomai] Round-robin "unknown error -3" > > On 05/05/2014 12:04 PM, mobin Motallebizadeh wrote: > > I used the "round-robin-example.c" and got the "round-robin-example-output".the first task returns 0 (success) and works correctlyothers return -3.what am I doing wrong.thanks in advance > > -ESRCH, unknown task. Your demo task exits after 200 ms runtime. > > -- > Philippe. I rewrite the code with another demo(). but still getting "no such process" . I want these three tasks work in round-robin mode. there's no tutorial about this. Thanks again -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: round-robin-example.c.txt URL: <http://www.xenomai.org/pipermail/xenomai/attachments/20140507/5ce0847b/attachment.txt> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: round-robin-example-output.txt URL: <http://www.xenomai.org/pipermail/xenomai/attachments/20140507/5ce0847b/attachment-0001.txt> ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-05-07 8:40 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2014-05-05 10:04 [Xenomai] Round-robin "unknown error -3" mobin Motallebizadeh 2014-05-05 10:41 ` Gilles Chanteperdrix 2014-05-05 10:43 ` Philippe Gerum 2014-05-07 8:40 ` mobin Motallebizadeh
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.