wmaker: Added reset of file handle variable to avoid multiple file close
commitbec778aae2e5cb7c4e6ced0b417d790e77f98d28
authorChristophe CURIS <christophe.curis@free.fr>
Sun, 13 Oct 2013 20:26:32 +0000 (13 22:26 +0200)
committerCarlos R. Mafra <crmafra@gmail.com>
Sun, 13 Oct 2013 20:38:42 +0000 (13 21:38 +0100)
tree12fac264ffe68079f29808e1122d26ec48f0e324
parenta3264184bd5f93cb2655db2f11375a9a1ed11936
wmaker: Added reset of file handle variable to avoid multiple file close

If the triggering condition occurred, the file handle for Inotify were
closed, but as the variable containing the handle was not updated it
could lead to multiple call to file close, which behaviour may be
problematic.

The file handle was passed as a parameter, which does not allow for a
clean value change, so now we use the variable directly as it is
available in the global namespace.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
src/event.c