} printf("/n"); if(insertdb(buf[0], buf[1], buf[2], buf[3])) printf("insert into db success!"); } else { perror("read fail"); exit(-1); }// if end here }// for end here tcsetattr(fd, TCSANOW, &oldtio); close(fd); exit(0); } // main end here 更多内容请看Java编程开发手册 Linux安全应用宝典 Linux防火墙专题,或