Discussion Locked

problem reading anonymous pipe

0 helpful
0 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

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?

0 replies

No replies were posted before this discussion closed.

This discussion is closed to new replies.