closing fd while in loop

Marc Lehmann schmorp at schmorp.de
Sat Mar 1 21:38:55 CET 2014


On Sat, Mar 01, 2014 at 07:04:40PM +0330, Jafar habibi livar <iceberg.90427 at gmail.com> wrote:
> if i close fd while the watcher is registered in a loop, will libev stop
> the watcher or should I do it manually?

You need to stop all watchers for the fd before closing the fd.

-- 
                The choice of a       Deliantra, the free code+content MORPG
      -----==-     _GNU_              http://www.deliantra.net
      ----==-- _       generation
      ---==---(_)__  __ ____  __      Marc Lehmann
      --==---/ / _ \/ // /\ \/ /      schmorp at schmorp.de
      -=====/_/_//_/\_,_/ /_/\_\



More information about the libev mailing list