svn commit: r288705 - svnadmin/tools/svnssh

Peter Wemm peter at FreeBSD.org
Mon Oct 5 07:42:08 UTC 2015


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();


More information about the svn-src-svnadmin mailing list