Thank you.
I think I also figured out the issue with the missing newline. It is not that just the newline is missing but that the message is truncated entirely. Looking at the chars read i get the EWOULDBLOCK after reading 4095 which is suspiciously close to the KMSGBUFSIZE in gnumach I tried doubling it to verify the theory and the messages appeared properly but that would just postpone the problem.