diff options
Diffstat (limited to 'nuttx/sched/mq_close.c')
-rw-r--r-- | nuttx/sched/mq_close.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/nuttx/sched/mq_close.c b/nuttx/sched/mq_close.c index 6643cc5e9..15d2272a0 100644 --- a/nuttx/sched/mq_close.c +++ b/nuttx/sched/mq_close.c @@ -138,6 +138,7 @@ int mq_close(mqd_t mqdes) * the message queue via this mqdes. */ +#ifndef CONFIG_DISABLE_SIGNALS if (msgq->ntmqdes == mqdes) { msgq->ntpid = INVALID_PROCESS_ID; @@ -145,6 +146,7 @@ int mq_close(mqd_t mqdes) msgq->ntvalue.sival_int = 0; msgq->ntmqdes = NULL; } +#endif /* Decrement the connection count on the message queue. */ |