message queues code example Example: message queue c not if (result == -1) { perror("msgsnd"); exit(EXIT_FAILURE); }