libzfs: sendrecv: always cancel progress thread in zfs_send_one()
This is in line with all the other uses of the progress thread Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #11560 Closes #13284
This commit is contained in:
parent
35ddd8ee2e
commit
1f4c79b1ce
|
@ -2522,7 +2522,6 @@ zfs_send_one(zfs_handle_t *zhp, const char *from, int fd, sendflags_t *flags,
|
||||||
|
|
||||||
if (flags->progress) {
|
if (flags->progress) {
|
||||||
void *status = NULL;
|
void *status = NULL;
|
||||||
if (err != 0)
|
|
||||||
(void) pthread_cancel(ptid);
|
(void) pthread_cancel(ptid);
|
||||||
(void) pthread_join(ptid, &status);
|
(void) pthread_join(ptid, &status);
|
||||||
int error = (int)(uintptr_t)status;
|
int error = (int)(uintptr_t)status;
|
||||||
|
|
Loading…
Reference in New Issue