From: deraadt Date: Thu, 2 Sep 2021 09:35:17 +0000 (+0000) Subject: move comment into correct place X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=aa841cc6ae5b7d2de0c09cb4dc1ad3e30e2f9a2e;p=openbsd move comment into correct place --- 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 (;;) {