From owner-svn-src-all@freebsd.org Mon Oct 5 07:42:08 2015 Return-Path: Delivered-To: svn-src-all@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 4980BA107CB; Mon, 5 Oct 2015 07:42:08 +0000 (UTC) (envelope-from peter@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2001:1900:2254:2068::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 3B2FB87E; Mon, 5 Oct 2015 07:42:08 +0000 (UTC) (envelope-from peter@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.70]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id t957g8wL084695; Mon, 5 Oct 2015 07:42:08 GMT (envelope-from peter@FreeBSD.org) Received: (from peter@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id t957g8Yq084694; Mon, 5 Oct 2015 07:42:08 GMT (envelope-from peter@FreeBSD.org) Message-Id: <201510050742.t957g8Yq084694@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: peter set sender to peter@FreeBSD.org using -f From: Peter Wemm Date: Mon, 5 Oct 2015 07:42:08 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-svnadmin@freebsd.org Subject: svn commit: r288705 - svnadmin/tools/svnssh X-SVN-Group: svnadmin MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Oct 2015 07:42:08 -0000 Author: peter Date: Mon Oct 5 07:42:07 2015 New Revision: 288705 URL: https://svnweb.freebsd.org/changeset/base/288705 Log: Add a maximum elapsed time before exiting. Modified: svnadmin/tools/svnssh/svnssh.c Modified: svnadmin/tools/svnssh/svnssh.c ============================================================================== --- svnadmin/tools/svnssh/svnssh.c Mon Oct 5 07:42:05 2015 (r288704) +++ svnadmin/tools/svnssh/svnssh.c Mon Oct 5 07:42:07 2015 (r288705) @@ -205,6 +205,7 @@ main(int argc, char *argv[]) rl.rlim_cur = 60 * 60; /* 60 minutes (soft) */ rl.rlim_max = 70 * 60; /* 70 minutes (hard) */ setrlimit(RLIMIT_CPU, &rl); + alarm(120); /* Limit total run time */ if (karma == 0) syslog(LOG_INFO, "svn server: %s, karma %d", username, karma); closelog();