Date: Mon, 5 Oct 2015 21:18:42 +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: r288900 - svnadmin/tools/svnssh Message-ID: <201510052118.t95LIgHq005869@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: peter Date: Mon Oct 5 21:18:41 2015 New Revision: 288900 URL: https://svnweb.freebsd.org/changeset/base/288900 Log: Fix the 120 minute runtime limit. Modified: svnadmin/tools/svnssh/svnssh.c Modified: svnadmin/tools/svnssh/svnssh.c ============================================================================== --- svnadmin/tools/svnssh/svnssh.c Mon Oct 5 20:15:18 2015 (r288899) +++ svnadmin/tools/svnssh/svnssh.c Mon Oct 5 21:18:41 2015 (r288900) @@ -205,7 +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 */ + alarm(120 * 60); /* Limit total run time to 120 minutes */ 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?201510052118.t95LIgHq005869>