Done until djumbai-send

This commit is contained in:
Afonso Franco 2024-05-11 12:39:00 +01:00
parent 83bd6fb796
commit da345fc422
Signed by: afonso
SSH key fingerprint: SHA256:PQTRDHPH3yALEGtHXnXBp3Orfcn21pK20t0tS1kHg54
8 changed files with 135 additions and 36 deletions

View file

@ -33,8 +33,8 @@ int main() {
} else { // Parent process
close(pipe_to_child[0]); // Close read end of pipe
unsigned char buffer[sizeof(struct Message)];
read(0, buffer, sizeof(struct Message));
unsigned char buffer[MESSAGE_SIZE];
read(0, buffer, MESSAGE_SIZE);
write(pipe_to_child[1], buffer, sizeof(buffer));
// Close the write end of the pipe