after

Echo a string after process dies
git clone _git@git.zakaria.org/after.git
Log | Files | Refs | README | LICENSE

commit b7ddd28b32b6541c058ded0461f48943462f16e1
parent bae8f409771a3efb197e0c2aa23ce0f3e656997e
Author: Benjamin Baier <programmer@netzbasis.de>
Date:   Tue,  5 Jan 2021 14:13:32 +0100

Add pledge safetybelts

Diffstat:
Mafter.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/after.c b/after.c @@ -83,6 +83,9 @@ main(int argc, char *argv[]) verbose = 0; + if (pledge("stdio ps", NULL) == -1) + err(1, "pledge"); + // argument parsing... while((ch = getopt(argc, argv, "e:hn:p:v")) != -1) switch(ch) {