mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-27 13:32:45 +00:00
Use a signal-safe type for two variables that are used to synchronise
with a signal handler. This fixes a race condition introduced by compiler reordering that caused dump to sometimes get stuck, especially while dumping large filesystems.
This commit is contained in:
parent
ed9e8cc512
commit
890005bf8a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=142968
@ -109,8 +109,8 @@ char (*nextblock)[TP_BSIZE];
|
||||
|
||||
int master; /* pid of master, for sending error signals */
|
||||
int tenths; /* length of tape used per block written */
|
||||
static int caught; /* have we caught the signal to proceed? */
|
||||
static int ready; /* have we reached the lock point without having */
|
||||
static volatile sig_atomic_t caught; /* have we caught the signal to proceed? */
|
||||
static volatile sig_atomic_t ready; /* reached the lock point without having */
|
||||
/* received the SIGUSR2 signal from the prev slave? */
|
||||
static jmp_buf jmpbuf; /* where to jump to if we are ready when the */
|
||||
/* SIGUSR2 arrives from the previous slave */
|
||||
|
Loading…
Reference in New Issue
Block a user