read on pty files is not hapenning!
i have 2 pty devices (/dev/ptya0 -master & /dev/ttya0 -slave). i am able to open both devices. Both devices file descriptor is same. i am writing to master pty but while reading from the slave its not reading.
char ch = 'M';
serialDev = open("/dev/ptyp9",O_RDWR|O_NOCTTY);
i = write(serialDev,&ch,1);
fd = open("/dev/ttyp9",O_RDWR);
i = read(fd,&ch,1);
if(ch != 0)
Thanks in advance!!!