summaryrefslogtreecommitdiff
path: root/src/ipc.c
diff options
context:
space:
mode:
authorAargh Rai <aargh.rai+git@gmail.com>2026-05-29 13:57:07 +0530
committerAargh Rai <aargh.rai+git@gmail.com>2026-05-29 13:57:07 +0530
commit26df2f9a8cbe3a249d54baa090edaf6a13ec883d (patch)
tree736318d0b4f168660d8e7dab843c8002555db41f /src/ipc.c
parentc38475eb5d82f6e587faf2956a7eba3085890e99 (diff)
crazy working logging system, we are back to where we were yesterday, just with logs
Diffstat (limited to 'src/ipc.c')
-rw-r--r--src/ipc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ipc.c b/src/ipc.c
index a55e22e..9c12ed4 100644
--- a/src/ipc.c
+++ b/src/ipc.c
@@ -2,6 +2,7 @@
#define IPC_C
#include <mqueue.h>
+#include <stdio.h>
#include <stdlib.h>
struct mq_attr attr = {
@@ -15,6 +16,7 @@ char* read_queue(mqd_t target) {
char* buf = malloc(attr.mq_msgsize);
int n = mq_receive(target, buf, attr.mq_msgsize, NULL);
if (n == -1) {
+ perror("mq_receive");
free(buf);
return NULL;
}