diff --git a/src/tail.c b/src/tail.c
index 059ee82..6fc7d21 100644
--- a/src/tail.c
+++ b/src/tail.c
@@ -994,6 +994,10 @@ any_live_files (const struct File_spec *f, int n_files)
and an occasional open/fstat to see if any dev/ino pair has changed.
If none of them have changed size in one iteration, sleep for a
while and try again. Continue until the user interrupts us. */
+// Mapping of parameters:
+// old new
+// === ===
+// int nfiles int n_files
static void
tail_forever (struct File_spec *f, int n_files, double sleep_interval)
@@ -1160,6 +1164,7 @@ wd_comparator (const void *e1, const void *e2)
/* Tail N_FILES files forever, or until killed.
Check modifications using the inotify events system. */
+// New function called from a newly-added block of code.
static void
tail_forever_inotify (int wd, struct File_spec *f, int n_files)
@@ -1935,7 +1940,7 @@ main (int argc, char **argv)
if (forever)
{
#if HAVE_INOTIFY
- if (pid == 0)
+ if (change(0, pid == 0))
{
int wd = inotify_init ();
if (wd < 0)