On Tue, Nov 12, 2013 at 04:13:50PM -0500, David Miller wrote: > From: Dave Jones <davej@xxxxxxxxxx> > Date: Tue, 12 Nov 2013 16:11:25 -0500 > > > Is shutdown() allowed to block indefinitely ? The man page doesn't say either way, > > and I've noticed that my fuzz tester occasionally hangs for days spinning in bt_sock_wait_state() > > > > Is there something I should be doing to guarantee that this operation > > will either time out, or return instantly ? > > > > In this specific case, I doubt anything is on the "sender" end of the socket, so > > it's going to be waiting forever for a state change that won't arrive. > > Adding bluetooth and wireless lists. Dave, please consult MAINTAINERS when > asking questions like this, thanks! I don't have an authoritative answer. I do, however, seem to recall that trying to shutdown a SunOS box with a hung NFS mount would seem to hang forever. I don't think that is a great metric for how we should behave, of course... John -- John W. Linville Someday the world will need a hero, and you linville@xxxxxxxxxxxxx might be all we have. Be ready. -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html