From 5887f5d919b2fab0d4c2316cb54ee0231c604a59 Mon Sep 17 00:00:00 2001 From: tb Date: Wed, 4 May 2022 15:21:25 +0000 Subject: [PATCH] rpki-client: bypass timeout in file mode. ok claudio --- usr.sbin/rpki-client/main.c | 6 +++--- 1 file 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 * Copyright (c) 2019 Kristaps Dzonsons @@ -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 -- 2.20.1