Browse Source

commander: Set process name on all OS

sbg
Lorenz Meier 9 years ago
parent
commit
1feb30fd39
  1. 4
      src/modules/commander/commander.cpp

4
src/modules/commander/commander.cpp

@ -3114,10 +3114,8 @@ void answer_command(struct vehicle_command_s &cmd, unsigned result)
void *commander_low_prio_loop(void *arg) void *commander_low_prio_loop(void *arg)
{ {
#if defined(__PX4_LINUX) || defined(__PX4_NUTTX)
/* Set thread name */ /* Set thread name */
prctl(PR_SET_NAME, "commander_low_prio", getpid()); px4_prctl(PR_SET_NAME, "commander_low_prio", getpid());
#endif
/* Subscribe to command topic */ /* Subscribe to command topic */
int cmd_sub = orb_subscribe(ORB_ID(vehicle_command)); int cmd_sub = orb_subscribe(ORB_ID(vehicle_command));

Loading…
Cancel
Save