fix receiver uid
This commit is contained in:
parent
f372af3cc3
commit
d482e0647f
3 changed files with 4 additions and 4 deletions
|
@ -113,7 +113,7 @@ int main(int argc, char *argv[]) {
|
|||
}
|
||||
}
|
||||
|
||||
int receiverUidInt = atoi("1003");
|
||||
int receiverUidInt = atoi(receiverUid);
|
||||
|
||||
send_message(receiverUidInt,groupFlag);
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@ int main() {
|
|||
}
|
||||
|
||||
// Open the FIFO for reading
|
||||
if (mkfifo(message_queue_path, 0420) == -1) {
|
||||
if (mkfifo(message_queue_path, 0660) == -1) {
|
||||
perror("mkfifo");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
@ -32,7 +32,7 @@ int main() {
|
|||
printf("FIFO '%s' does not exist. Exiting...\n", message_queue_path);
|
||||
return 1;
|
||||
} else {
|
||||
perror("open");
|
||||
perror("open:");
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue