th.maxchan = devc->maxchan;
if(DEVNULL_HAS_PRIV(devc, MAXSENDQ) && (!DEVNULL_HAS_PRIV(&th, MAXSENDQ) || th.maxsendq < devc->maxsendq))
th.maxsendq = devc->maxsendq;
- th.modes |= devc->maxsendq;
+ th.modes |= devc->modes;
if(!th.name)
th.name = devc->name;
}