In the current state the errno saving in there is confusing as there
are several returns ignoring to set it. I think its currently harmless
as there should be no changes to errno at those places - beside that
the only caller (procsignal_sigusr1_handler) already saves it.
void
RecoveryConflictInterrupt(ProcSignalReason reason)
{
- int save_errno = errno;
-
/*
- * Don't joggle the elbow of proc_exit
- */
+ * Don't joggle the elbow of proc_exit
+ */
if (!proc_exit_inprogress)
{
RecoveryConflictReason = reason;
ProcessInterrupts();
}
}
-
- errno = save_errno;
}
/*