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