2026-09-20 04:01 UTC
@zwol@masto.hackers.town "Once all references to the file are dropped, it is automatically released." yeah that's pretty straightforward, it's not tied to the process
acts like a regular file rather than /dev/null though. also linux-specific
Replies (1)
-
@zwol@masto.hackers.town 2026-09-20 13:05
@eevee@slime.global hm, yes, you're right, i was mixing up memfd_create with open_memstream (which is, somehow, not the same thing as fmemopen) behaving like a regular file is a deal-breaker for the actual application that wants this, though; i really do need data written to the fake /dev/null to be *thrown away*, not to hang around consuming an unbounded amount of RAM