fix receiver uid
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user