Page MenuHomeFreeBSD

D42713.id.diff
No OneTemporary

D42713.id.diff

diff --git a/usr.bin/lockf/lockf.c b/usr.bin/lockf/lockf.c
--- a/usr.bin/lockf/lockf.c
+++ b/usr.bin/lockf/lockf.c
@@ -157,8 +157,11 @@
signal(SIGINT, SIG_IGN);
signal(SIGQUIT, SIG_IGN);
signal(SIGTERM, killed);
+ fclose(stdin);
+ fclose(stdout);
+ fclose(stderr);
if (waitpid(child, &status, 0) == -1)
- err(EX_OSERR, "waitpid failed");
+ exit(EX_OSERR);
return (WIFEXITED(status) ? WEXITSTATUS(status) : EX_SOFTWARE);
}
@@ -210,7 +213,7 @@
cleanup();
signal(sig, SIG_DFL);
if (kill(getpid(), sig) == -1)
- err(EX_OSERR, "kill failed");
+ _Exit(EX_OSERR);
}
/*

File Metadata

Mime Type
text/plain
Expires
Sat, Feb 21, 8:52 PM (21 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28927577
Default Alt Text
D42713.id.diff (590 B)

Event Timeline