check_session
extern int check_session(int);
if (check_session(fd) == 0) {
if (check_session(fd) != 0) {