The effect is that the error handling is much better. posix_fallocate() will allocate all the requested space, whereas ftruncate() does not. Before this commit, in case the /dev/shm filesystem is too small to hold the _contents_ of the log file, i3 will SIGBUS when writing to the shm logfile. With this commit, it will print an error message on startup, but continue to run without logging.
Description
No description provided
Languages
C
58.6%
Perl
29%
Raku
9.4%
Ruby
1.2%
Shell
0.7%
Other
1.1%