General discussion
March 17, 2008 at 02:35 AM
sonncha

problem reading anonymous pipe

by sonncha . Updated 18 years, 4 months ago

Hi,

I’m having weird trouble reading from an anonymous pipe called pipe1. When I write the following :

char email[100];
char password[100];
read(pipe1[0], email, 100);
read(pipe1[0], password, 100);

the reader program blocks after succesfully reading ’email’. The writer program successfuly writes both email and password in the pipe, I’ve checked this already. What am I doing wrong?

This discussion is locked

All Comments