|
|
|
|
|
by cliffbean
4242 days ago
|
|
SIGABRT (or similar) approach is similarly tempting. No checking for errors, no complicated control paths. If Unix systems let processes register (and unregister) files to be automatically deleted on abnormal exit, it'd be pretty convenient. |
|
Linux 3.11 added support for the O_TMPFILE flag to open(2) so it's not even necessary to call unlink(2).