--- libaitsched/src/hooks.c 2017/08/31 12:18:38 1.31.2.1 +++ libaitsched/src/hooks.c 2017/08/31 12:22:16 1.31.2.3 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: hooks.c,v 1.31.2.1 2017/08/31 12:18:38 misho Exp $ +* $Id: hooks.c,v 1.31.2.3 2017/08/31 12:22:16 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -12,7 +12,7 @@ terms: All of the documentation and software included in the ELWIX and AITNET Releases is copyrighted by ELWIX - Sofia/Bulgaria -Copyright 2004 - 2016 +Copyright 2004 - 2017 by Michael Pounov . All rights reserved. Redistribution and use in source and binary forms, with or without @@ -1208,7 +1208,7 @@ fetch_hook_select_proceed(int en, fd_set rfd, fd_set w } } /* remove resouce */ - if (flg) + if (flg == 1) FD_CLR(i, &r->root_fds[0]); } @@ -1239,7 +1239,7 @@ fetch_hook_select_proceed(int en, fd_set rfd, fd_set w } } /* remove resouce */ - if (flg) + if (flg == 1) FD_CLR(i, &r->root_fds[1]); } }