Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Even though it is normal, dataman worker thread can not be created #7898

Closed
jeonghwan-lee opened this issue Sep 2, 2017 · 1 comment
Closed

Comments

@jeonghwan-lee
Copy link

Bug Report

The px4_task_spawn_cmd function passes a value greater than or equal to 0 in the normal case and a value of -1 if an error occurs.
When the dataman start function in dataman.cpp file is running, call the px4_task_spawn_cmd function.
Therefore, in the source code below, the comparison statement that determines the error should be modified to a value less than zero.

// Now
if ((task = px4_task_spawn_cmd("dataman", SCHED_DEFAULT, SCHED_PRIORITY_DEFAULT - 10, 1200, task_main, nullptr)) <= 0) {

// Modified
if ((task = px4_task_spawn_cmd("dataman", SCHED_DEFAULT, SCHED_PRIORITY_DEFAULT - 10, 1200, task_main, nullptr)) < 0) {

@bkueng
Copy link
Member

bkueng commented Sep 4, 2017

Thanks for the report. Fixed in #7909

@dagar dagar closed this as completed Sep 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants