Initialize fifoinfo fi_wgen field on open. The only important is the
difference between fi_wgen and f_seqcount, so the change is purely cosmetic, but it makes the code easier to understand. Submitted by: gianni MFC after: 2 weeks
This commit is contained in:
parent
97695ad4cd
commit
d8e8af3166
@ -218,7 +218,7 @@ fifo_open(ap)
|
||||
free(fip, M_VNODE);
|
||||
return (error);
|
||||
}
|
||||
fip->fi_readers = fip->fi_writers = 0;
|
||||
fip->fi_wgen = fip->fi_readers = fip->fi_writers = 0;
|
||||
wso->so_snd.sb_lowat = PIPE_BUF;
|
||||
SOCKBUF_LOCK(&rso->so_rcv);
|
||||
rso->so_rcv.sb_state |= SBS_CANTRCVMORE;
|
||||
|
Loading…
Reference in New Issue
Block a user