Added status debugs

This commit is contained in:
Joseph Henry 2015-10-16 19:30:01 -04:00
commit 8b03965912
3 changed files with 25 additions and 13 deletions

View file

@ -496,10 +496,9 @@ int connect(CONNECT_SIG)
//int flags = fcntl(__fd, F_GETFD);
//dwr("connect(): socket flags = %d\n", flags);
if(sock_type && O_NONBLOCK) {
dwr("connect(): O_NONBLOCK\n");
}
//if(sock_type && O_NONBLOCK) {
// dwr("connect(): O_NONBLOCK\n");
//}
/* assemble and route command */
int err;
@ -656,6 +655,11 @@ int accept(ACCEPT_SIG)
errno = EMFILE;
return -1;
}
/* Check address length */
if(addrlen < 0) {
errno = EINVAL;
return -1;
}
#endif
/* make sure we don't touch any standard outputs */