Make sox_close() return the result of xfclose() #619
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Make sox_close() return the result of xfclose()
Description
sox_close()ignores the result ofxfclose(), which callsfclose()orpclose()and returns their return values (
fclosereturns 0 or -1 like SOX_SUCCESS and SOX_EOF,and
pclosereturns the exit status of the command, which is also 0 on success).If we were to apply
that would make it signal a write error of buffered data when the disk is full,
or a piped command failing when it should have succeeded.