]> mj.ucw.cz Git - libucw.git/commit
Mainloop: Be benevolent when file_del() is called on a closed fd
authorMartin Mares <mj@ucw.cz>
Sun, 9 Nov 2014 12:32:28 +0000 (13:32 +0100)
committerMartin Mares <mj@ucw.cz>
Sun, 9 Nov 2014 12:32:28 +0000 (13:32 +0100)
commitd63eda1a3361027776f505e5db592e14f9620890
tree1f9b24d880f51bf5811b3cc9fb2560649c83003c
parent276364d29ca149e30344e3eab91cb93dd6beecd6
Mainloop: Be benevolent when file_del() is called on a closed fd

I recently wrote a couple of wrappers for connecting other mainloop
interfaces to UCW mainloop. Unfortunately, asking a mainloop to stop
watching a file a moment after close() is a common (mal)practice.
Working around it in the wrapper is hard to do, so I relax the checks
in LibUCW instead.
ucw/mainloop.c