musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src/stdio/fwrite.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012年06月20日 14:50:29 -0400
committerRich Felker <dalias@aerifal.cx>2012年06月20日 14:50:29 -0400
commit1af8c255040b3e1ba4913fd935d117490bfe8774 (patch)
tree3ae16b28fd9a6eaffa3c57793c703453bd2c1b24 /src/stdio/fwrite.c
parent9799560f79d37fb53d821b2f0b591a6ff260ebc3 (diff)
downloadmusl-1af8c255040b3e1ba4913fd935d117490bfe8774.tar.gz
avoid cancellation in pclose
at the point pclose might receive and act on cancellation, it has already invalidated the FILE passed to it. thus, per musl's QOI guarantees about cancellation and resource allocation/deallocation, it's not a candidate for cancellation. if it were required to be a cancellation point by posix, we would have to switch the order of deallocation, but somehow still close the pipe in order to trigger the child process to exit. i looked into doing this, but the logic gets ugly, and i'm not sure the semantics are conformant, so i'd rather just leave it alone unless there's a need to change it.
Diffstat (limited to 'src/stdio/fwrite.c')
0 files changed, 0 insertions, 0 deletions
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月15日 22:03:12 +0000

AltStyle によって変換されたページ (->オリジナル) /