From owner-svn-src-stable@freebsd.org Sat Dec 3 19:53:16 2016 Return-Path: Delivered-To: svn-src-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C9F53C65A87; Sat, 3 Dec 2016 19:53:16 +0000 (UTC) (envelope-from trasz@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 94F71BFA; Sat, 3 Dec 2016 19:53:16 +0000 (UTC) (envelope-from trasz@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id uB3JrF2O089669; Sat, 3 Dec 2016 19:53:15 GMT (envelope-from trasz@FreeBSD.org) Received: (from trasz@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id uB3JrFRp089668; Sat, 3 Dec 2016 19:53:15 GMT (envelope-from trasz@FreeBSD.org) Message-Id: <201612031953.uB3JrFRp089668@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: trasz set sender to trasz@FreeBSD.org using -f From: Edward Tomasz Napierala Date: Sat, 3 Dec 2016 19:53:15 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r309508 - stable/11/usr.sbin/autofs X-SVN-Group: stable-11 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-stable@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for all the -stable branches of the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Dec 2016 19:53:16 -0000 Author: trasz Date: Sat Dec 3 19:53:15 2016 New Revision: 309508 URL: https://svnweb.freebsd.org/changeset/base/309508 Log: MFC r308206: Make autounmountd(8) not die when traced with "truss -p". Modified: stable/11/usr.sbin/autofs/autounmountd.c Directory Properties: stable/11/ (props changed) Modified: stable/11/usr.sbin/autofs/autounmountd.c ============================================================================== --- stable/11/usr.sbin/autofs/autounmountd.c Sat Dec 3 19:52:33 2016 (r309507) +++ stable/11/usr.sbin/autofs/autounmountd.c Sat Dec 3 19:53:15 2016 (r309508) @@ -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");