Skip to content

Commit 53357aa

Browse files
authored
Fix __zipos_close (#984)
1 parent 577bb18 commit 53357aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libc/calls/close.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ static int close_impl(int fd) {
4949
}
5050

5151
if (__isfdkind(fd, kFdZip)) {
52-
if (_weaken(__zipos_close)) {
52+
if (!__vforked && _weaken(__zipos_close)) {
5353
return _weaken(__zipos_close)(fd);
5454
}
5555
if (!IsWindows() && !IsMetal()) {

0 commit comments

Comments
 (0)