Use posix_fallocate instead of ftruncate.
This makes sure that space is actually available. With this change running lld on a full file system causes it to exit with failed to open foo: No space left on device instead of crashing with a sigbus. llvm-svn: 276017
Loading
Please register or sign in to comment