Commit 2cdacc6e authored by gmainland's avatar gmainland
Browse files

Fix warning about unused result.

This error was breaking validate on Linux for me.
parent 2b87e244
......@@ -45,10 +45,11 @@ extern void unblockUserSignals(void);
__attribute__((__noreturn__))
static void childFailed(int pipe, int failCode) {
int err;
ssize_t unused __attribute__((unused));
err = errno;
write(pipe, &failCode, sizeof(failCode));
write(pipe, &err, sizeof(err));
unused = write(pipe, &failCode, sizeof(failCode));
unused = write(pipe, &err, sizeof(err));
// As a fallback, exit with the failCode
_exit(failCode);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment