Cleanup zipos vfork (#1004)

This commit is contained in:
Jōshin 2023-12-13 04:36:44 -05:00 committed by GitHub
parent 6cedbc746c
commit 3b302e6379
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 3 deletions

View file

@ -49,7 +49,7 @@ static int close_impl(int fd) {
}
if (__isfdkind(fd, kFdZip)) {
if (!__vforked && _weaken(__zipos_close)) {
if (_weaken(__zipos_close)) {
return _weaken(__zipos_close)(fd);
}
if (!IsWindows() && !IsMetal()) {