commander: Set process name on all OS

This commit is contained in:
Lorenz Meier
2015-12-01 11:53:59 +01:00
parent aa36e54c93
commit 1feb30fd39
+1 -3
View File
@@ -3114,10 +3114,8 @@ void answer_command(struct vehicle_command_s &cmd, unsigned result)
void *commander_low_prio_loop(void *arg)
{
#if defined(__PX4_LINUX) || defined(__PX4_NUTTX)
/* Set thread name */
prctl(PR_SET_NAME, "commander_low_prio", getpid());
#endif
px4_prctl(PR_SET_NAME, "commander_low_prio", getpid());
/* Subscribe to command topic */
int cmd_sub = orb_subscribe(ORB_ID(vehicle_command));