From aa841cc6ae5b7d2de0c09cb4dc1ad3e30e2f9a2e Mon Sep 17 00:00:00 2001 From: deraadt Date: Thu, 2 Sep 2021 09:35:17 +0000 Subject: [PATCH] move comment into correct place --- usr.bin/timeout/timeout.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/usr.bin/timeout/timeout.c b/usr.bin/timeout/timeout.c index 94bb1f8bf4a..616ff3ae88e 100644 --- a/usr.bin/timeout/timeout.c +++ b/usr.bin/timeout/timeout.c @@ -1,4 +1,4 @@ -/* $OpenBSD: timeout.c,v 1.15 2021/09/02 09:08:08 deraadt Exp $ */ +/* $OpenBSD: timeout.c,v 1.16 2021/09/02 09:35:17 deraadt Exp $ */ /* * Copyright (c) 2021 Job Snijders @@ -255,13 +255,14 @@ main(int argc, char **argv) err(1, "execvp"); } + /* parent continues here */ + if (pledge("stdio proc", NULL) == -1) err(1, "pledge"); if (sigprocmask(SIG_BLOCK, &signals.sa_mask, NULL) == -1) err(1, "sigprocmask"); - /* parent continues here */ set_interval(first_kill); for (;;) { -- 2.20.1