artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e34dbed
)
Use imsg_get_fd() and adjust cleanup code accordingly.
author
claudio
<claudio@openbsd.org>
Tue, 16 Jan 2024 13:07:29 +0000
(13:07 +0000)
committer
claudio
<claudio@openbsd.org>
Tue, 16 Jan 2024 13:07:29 +0000
(13:07 +0000)
OK nicm@
usr.bin/file/file.c
patch
|
blob
|
history
diff --git
a/usr.bin/file/file.c
b/usr.bin/file/file.c
index
3183adb
..
9fb35db
100644
(file)
--- a/
usr.bin/file/file.c
+++ b/
usr.bin/file/file.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: file.c,v 1.
69 2019/11/30 14:01:45 mestre
Exp $ */
+/* $OpenBSD: file.c,v 1.
70 2024/01/16 13:07:29 claudio
Exp $ */
/*
* Copyright (c) 2015 Nicholas Marriott <nicm@openbsd.org>
@@
-418,12
+418,12
@@
child(int fd, pid_t parent, int argc, char **argv)
inf.msg = msg;
inf.path = argv[idx];
- inf.fd = imsg
.fd
;
+ inf.fd = imsg
_get_fd(&imsg)
;
test_file(&inf, width);
- if (i
msg
.fd != -1)
- close(i
msg
.fd);
+ if (i
nf
.fd != -1)
+ close(i
nf
.fd);
imsg_free(&imsg);
ack.idx = idx;