summaryrefslogtreecommitdiff
path: root/logging.c
diff options
context:
space:
mode:
Diffstat (limited to 'logging.c')
-rw-r--r--logging.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/logging.c b/logging.c
index 93838b5..f21d2a7 100644
--- a/logging.c
+++ b/logging.c
@@ -74,7 +74,10 @@ void log_process_exit (child)
size_t cc;
struct command_log *lrec;
- if (message_queue == (mqd_t) -1)
+ if (message_queue == (mqd_t) -1) /* message queue does not exist */
+ return;
+
+ if (child->command == NULL) /* no command info */
return;
cc = sizeof(*lrec) + strlen(child->command) + 1;