summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2022-05-04 15:21:26 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2022-05-04 15:21:26 +0000
commitd85308dfa47159e4042c0103e04b4461b4c6c244 (patch)
tree085b4435858809e4ea44e281da9976591ba3a2cf /usr.sbin
parent42f520a1d83111cfe6be7731537cf3c4998f75de (diff)
rpki-client: bypass timeout in file mode.
ok claudio
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/rpki-client/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/rpki-client/main.c b/usr.sbin/rpki-client/main.c
index 1fa7c583eb9..07164ec236f 100644
--- a/usr.sbin/rpki-client/main.c
+++ b/usr.sbin/rpki-client/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.201 2022/05/04 13:07:35 tb Exp $ */
+/* $OpenBSD: main.c,v 1.202 2022/05/04 15:21:25 tb Exp $ */
/*
* Copyright (c) 2021 Claudio Jeker <claudio@openbsd.org>
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
@@ -689,7 +689,7 @@ process_start(const char *title, int *fd)
/* change working directory to the cache directory */
if (fchdir(cachefd) == -1)
err(1, "fchdir");
- if (timeout)
+ if (!filemode && timeout > 0)
alarm(timeout);
close(pair[1]);
*fd = pair[0];
@@ -923,7 +923,7 @@ main(int argc, char *argv[])
rrdppid = -1;
}
- if (timeout) {
+ if (!filemode && timeout > 0) {
/*
* Commit suicide eventually
* cron will normally start a new one