<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div>Hi, all</div><div>      If  some message went into bus->wqueue, and  failed to run  ioctl(KDBUS_CMD_SEND) and returned  r < 0,</div><div>I found that this message will remain in the bus->wqueue.   If  the peer is  killed for some reason, this message will fail to be sent and remain in the wqueu for ever.</div><div><br></div><div>Because in  dispatch_wqueue() ,  when bus_write_message() return r <0,   dispatch_wqueue() will simply return this  "r " into the caller. </div><div>And the wqueue is invisible to user application, so user application <span style="line-height: 23.7999992370605px;">also </span><span style="line-height: 1.7;">cannot   remove this message to handle this error case.</span></div><div><span style="line-height: 1.7;"><br></span></div><div> I wonder whether this is a problem, and if yes,  should we remove this message  in dispatch_wqueue() when  r < 0 ?</div><div><br></div><div><br></div><div>Thanks  a  lot !</div><div><br></div><div><br></div><div>Li Cheng</div></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span>