diff options
| author | Aargh Rai <aargh.rai+git@gmail.com> | 2026-05-29 13:57:07 +0530 |
|---|---|---|
| committer | Aargh Rai <aargh.rai+git@gmail.com> | 2026-05-29 13:57:07 +0530 |
| commit | 26df2f9a8cbe3a249d54baa090edaf6a13ec883d (patch) | |
| tree | 736318d0b4f168660d8e7dab843c8002555db41f /src/ipc.c | |
| parent | c38475eb5d82f6e587faf2956a7eba3085890e99 (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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; } |
