Skip to content

Commit

Permalink
fix bug inotify_flags
Browse files Browse the repository at this point in the history
  • Loading branch information
btovar committed Feb 22, 2017
1 parent 5f5c5d5 commit cfa651f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resource_monitor/src/resource_monitor.c
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,7 @@ void rmonitor_add_file_watch(const char *filename, int is_output, int override_f
inotify_flags = override_flags;
}

if ((iwd = inotify_add_watch(rmonitor_inotify_fd, filename, override_flags)) < 0)
if ((iwd = inotify_add_watch(rmonitor_inotify_fd, filename, inotify_flags)) < 0)
{
debug(D_RMON, "inotify_add_watch for file %s fails: %s", filename, strerror(errno));
} else {
Expand Down

0 comments on commit cfa651f

Please sign in to comment.