Date: Mon, 5 Oct 2015 07:42:08 +0000 (UTC) From: Peter Wemm <peter@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-svnadmin@freebsd.org Subject: svn commit: r288705 - svnadmin/tools/svnssh Message-ID: <201510050742.t957g8Yq084694@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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();
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201510050742.t957g8Yq084694>