mirror of
				https://gitlab.alpinelinux.org/alpine/aports.git
				synced 2025-10-31 08:21:49 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			23 lines
		
	
	
		
			518 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			518 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
| for some reason this breaks and the fd returned after close() after a few
 | |
| cycles is still in the lock array
 | |
| 
 | |
| so, just don't enforce or wrap anything.
 | |
| --- a/base/files/scoped_file_linux.cc
 | |
| +++ b/base/files/scoped_file_linux.cc
 | |
| @@ -77,15 +77,3 @@
 | |
|  }
 | |
|  
 | |
|  }  // namespace base
 | |
| -
 | |
| -extern "C" {
 | |
| -
 | |
| -int __close(int);
 | |
| -
 | |
| -__attribute__((visibility("default"), noinline)) int close(int fd) {
 | |
| -  if (base::IsFDOwned(fd) && g_is_ownership_enforced)
 | |
| -    CrashOnFdOwnershipViolation();
 | |
| -  return __close(fd);
 | |
| -}
 | |
| -
 | |
| -}  // extern "C"
 |