Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Nov 2016 08:12:37 +0000 (UTC)
From:      Edward Tomasz Napierala <trasz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r308206 - head/usr.sbin/autofs
Message-ID:  <201611020812.uA28Cbpj097674@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: trasz
Date: Wed Nov  2 08:12:37 2016
New Revision: 308206
URL: https://svnweb.freebsd.org/changeset/base/308206

Log:
  Make autounmountd(8) not die when traced with "truss -p".
  
  MFC after:	1 month

Modified:
  head/usr.sbin/autofs/autounmountd.c

Modified: head/usr.sbin/autofs/autounmountd.c
==============================================================================
--- head/usr.sbin/autofs/autounmountd.c	Wed Nov  2 07:24:34 2016	(r308205)
+++ head/usr.sbin/autofs/autounmountd.c	Wed Nov  2 08:12:37 2016	(r308206)
@@ -244,8 +244,11 @@ do_wait(int kq, double sleep_time)
 		log_debugx("waiting for filesystem event");
 		nevents = kevent(kq, NULL, 0, &unused, 1, NULL);
 	}
-	if (nevents < 0)
+	if (nevents < 0) {
+		if (errno == EINTR)
+			return;
 		log_err(1, "kevent");
+	}
 
 	if (nevents == 0) {
 		log_debugx("timeout reached");



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201611020812.uA28Cbpj097674>