Always call close on fd if file has been opened

The previous logic only called close if the file had been opened AND
there was a valid inotify watch handle. Even if there is not a watch
handle, the file should be closed.

Change-Id: I0bfb3a0fac88d5b648790c4e60755e01af6f5bd7
Signed-off-by: Vernon Mauery <vernon.mauery@linux.intel.com>
1 file changed
tree: af44daade5c3d3a3f222570a5e2361e1ff3c3ff2
  1. org/
  2. test/
  3. xyz/
  4. .clang-format
  5. .gitignore
  6. activation.cpp
  7. activation.hpp
  8. bootstrap.sh
  9. configure.ac
  10. download_manager.cpp
  11. download_manager.hpp
  12. download_manager_main.cpp
  13. elog-errors.hpp
  14. image_manager.cpp
  15. image_manager.hpp
  16. image_manager_main.cpp
  17. image_verify.cpp
  18. image_verify.hpp
  19. item_updater.cpp
  20. item_updater.hpp
  21. item_updater_main.cpp
  22. LICENSE
  23. Makefile.am
  24. README.md
  25. serialize.cpp
  26. serialize.hpp
  27. sync_manager.cpp
  28. sync_manager.hpp
  29. sync_manager_main.cpp
  30. sync_watch.cpp
  31. sync_watch.hpp
  32. version.cpp
  33. version.hpp
  34. watch.cpp
  35. watch.hpp
README.md

phosphor-bmc-code-mgmt

Phosphor BMC Code Management provides a set of system software management applications. More information can be found at Software Architecture

To Build

To build this package, do the following steps:

    1. ./bootstrap.sh
    2. ./configure ${CONFIGURE_FLAGS}
    3. make

To clean the repository run `./bootstrap.sh clean`.