Skip to content

Commit

Permalink
safekeeper: correctly handle signals
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Chi Z <chi@neon.tech>
  • Loading branch information
skyzh committed Mar 18, 2024
1 parent 2bc2fd9 commit b62ad06
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pgxn/neon/walproposer_pg.c
Original file line number Diff line number Diff line change
Expand Up @@ -509,9 +509,10 @@ walprop_pg_init_standalone_sync_safekeepers(void)
static void
walprop_sigusr2(SIGNAL_ARGS)
{
int save_errno = errno;
got_SIGUSR2 = true;

SetLatch(MyLatch);
errno = save_errno;
}

static void
Expand Down

0 comments on commit b62ad06

Please sign in to comment.