ssld: Do not do redundant rb_setselect().

Apparently solaris devpoll/ports may have a problem
with this.
from ircd-ratbox (androsyn)
This commit is contained in:
Jilles Tjoelker 2009-03-03 22:32:18 +01:00
parent 76caaecbba
commit 9fc01c8c31
1 changed files with 3 additions and 1 deletions

View File

@ -1025,8 +1025,9 @@ mod_write_ctl(rb_fde_t *F, void *data)
if(retlen == 0 || (retlen < 0 && !rb_ignore_errno(errno))) if(retlen == 0 || (retlen < 0 && !rb_ignore_errno(errno)))
exit(0); exit(0);
rb_setselect(ctl->F, RB_SELECT_WRITE, mod_write_ctl, ctl);
} }
if(rb_dlink_list_length(&ctl->writeq) > 0)
rb_setselect(ctl->F, RB_SELECT_WRITE, mod_write_ctl, ctl);
} }
@ -1076,6 +1077,7 @@ main(int argc, char **argv)
close(x); close(x);
} }
x = open("/dev/null", O_RDWR); x = open("/dev/null", O_RDWR);
if(x >= 0) if(x >= 0)
{ {
if(ctlfd != 0 && pipefd != 0) if(ctlfd != 0 && pipefd != 0)