summaryrefslogtreecommitdiff
path: root/nuttx/sched/mq_open.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/sched/mq_open.c')
-rw-r--r--nuttx/sched/mq_open.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/nuttx/sched/mq_open.c b/nuttx/sched/mq_open.c
index e3e239180..13c964e53 100644
--- a/nuttx/sched/mq_open.c
+++ b/nuttx/sched/mq_open.c
@@ -189,7 +189,9 @@ mqd_t mq_open(const char *mq_name, int oflags, ...)
}
msgq->nconnect = 1;
+#ifndef CONFIG_DISABLE_SIGNALS
msgq->ntpid = INVALID_PROCESS_ID;
+#endif
strcpy(msgq->name, mq_name);
/* Add the new message queue to the list of