Jonathan Nieder <jrnieder@xxxxxxxxx> writes: > static NORETURN void die_child(const char *err, va_list params) > { > ... > - unused = write(child_err, "fatal: ", 7); > - unused = write(child_err, msg, len); > - unused = write(child_err, "\n", 1); > + if (write(child_err, "fatal: ", 7) || > + write(child_err, msg, len) || > + write(child_err, "\n", 1)) > + ; /* yes, gcc -D_FORTIFY_SOURCE, we know there was an error. */ Strictly speaking, this changes behaviour by stopping at the first failure from write(2), but I don't think we care. Thanks. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html