From: Eric Wong Date: 2022-01-11T17:20:03+00:00 Subject: [ruby-core:107057] Re: [Ruby master Bug#18465] Make `IO#write` atomic. "ioquatix (Samuel Williams)" wrote: > By the way, even calling `write` directly is no guarantee of > synchronous output between threads/processes - on Linux there > is an informal guarantee of page-sized atomicity. write(2) w/ O_APPEND on local FSes is atomic. Preforked servers (e.g. Apache) have been relying on that for decades to write log files. And PIPE_BUF for pipes/FIFOs is POSIX, (which equals page size on Linux). > Bug #18465: Make `IO#write` atomic. > https://bugs.ruby-lang.org/issues/18465#change-95859 Unsubscribe: