mirror of
https://salsa.debian.org/dskoll/remind.git
synced 2026-04-27 11:27:06 +02:00
Update docs; kill time-limiter when we queue.
This commit is contained in:
+12
-2
@@ -1014,8 +1014,17 @@ AddTrustedUser(char const *username)
|
||||
NumTrustedUsers++;
|
||||
}
|
||||
|
||||
static void
|
||||
limit_execution_time(int t)
|
||||
static pid_t LimiterPid = (pid_t) -1;
|
||||
|
||||
void unlimit_execution_time(void)
|
||||
{
|
||||
if (LimiterPid != (pid_t) -1) {
|
||||
kill(LimiterPid, SIGTERM);
|
||||
LimiterPid = (pid_t) -1;
|
||||
}
|
||||
}
|
||||
|
||||
static void limit_execution_time(int t)
|
||||
{
|
||||
pid_t parent = getpid();
|
||||
|
||||
@@ -1026,6 +1035,7 @@ limit_execution_time(int t)
|
||||
}
|
||||
|
||||
if (pid > 0) {
|
||||
LimiterPid = pid;
|
||||
/* In the parent */
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user