If no tabfiles are specified, default to watching /proc/self/mountinfo
rather than exiting silently with EXIT_FAILURE.
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
*/
if (flags & FL_POLL) {
/* poll mode (accept the first tabfile only) */
- if (tabfiles && ntabfiles > 0)
- rc = poll_table(tb, *tabfiles, timeout, tt, direction);
+ rc = poll_table(tb, tabfiles ? *tabfiles : _PATH_PROC_MOUNTINFO, timeout, tt, direction);
} else if ((tt_flags & TT_FL_TREE) && is_listall_mode())
/* whole tree */