Done until djumbai-send
This commit is contained in:
parent
83bd6fb796
commit
da345fc422
8 changed files with 135 additions and 36 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue