int comm_fd = -1;
if(comm_fd !=-1)
{
close (comm_fd);
comm_fd = -1;
}
char path[20] ={0};
strcpy(path,"/dev/ser1");
comm_fd = open ( path, O_RDWR,S_IRUSR | S_IWUSR)
int comm_fd = -1;
if(comm_fd !=-1)
{
close (comm_fd);
comm_fd = -1;
}
char path[20] ={0};
strcpy(path,"/dev/ser1");
comm_fd = open ( path, O_RDWR,S_IRUSR | S_IWUSR)