svn commit: r202073 - projects/jbuild/usr.bin/make

Craig Rodrigues rodrigc at FreeBSD.org
Mon Jan 11 10:15:16 UTC 2010


Author: rodrigc
Date: Mon Jan 11 10:15:16 2010
New Revision: 202073
URL: http://svn.freebsd.org/changeset/base/202073

Log:
  If filemon device cannot be opened, add
  some advice to the error message on possible
  ways to solve the problem.

Modified:
  projects/jbuild/usr.bin/make/job.c

Modified: projects/jbuild/usr.bin/make/job.c
==============================================================================
--- projects/jbuild/usr.bin/make/job.c	Mon Jan 11 10:12:35 2010	(r202072)
+++ projects/jbuild/usr.bin/make/job.c	Mon Jan 11 10:15:16 2010	(r202073)
@@ -667,8 +667,12 @@ filemon_open(Job *job)
 		retry--;
 	}
 
-	if (filemon_fd < 0)
-			err(1, "Could not open filemon device!");
+	if (filemon_fd < 0) {
+		err(1, "Could not open filemon device!\n"
+		    "To address this problem, either:\n\n"
+		    "(1) make sure filemon.ko kernel module is loaded.\n"
+		    "(2) or use '-Q' flag to suppress generation of meta data files\n\n");
+	}
 	if ((mon_fd = mkstemp(mon_fname)) < 0)
 		err(1, "Could not create temporary file!");
 	else if (ioctl(filemon_fd, FILEMON_SET_FD, &mon_fd) < 0)


More information about the svn-src-projects mailing list