Hi guys I'm trying to connect to CISCO router using termios. So I decided to have two threads one for reading data and the other one for writing data. And here's my code : int mainfd=0; char ch[2] = {NULL}; void *write(void *) { char temp; while(1) { temp = getchar(); ch[0] = temp; ch[1] = '