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