MFV r253784:
Fix zfs send -D hang after processing requiring a CTRL+C to interrupt due to pthread_join prior to fd close. This was introduced by r251646 (MFV r251644) Illumos ZFS issue: 3909 "zfs send -D" does not work MFC after: 1 day
This commit is contained in:
commit
b79849e50c
@ -1576,8 +1576,8 @@ zfs_send(zfs_handle_t *zhp, const char *fromsnap, const char *tosnap,
|
||||
if (tid != 0) {
|
||||
if (err != 0)
|
||||
(void) pthread_cancel(tid);
|
||||
(void) pthread_join(tid, NULL);
|
||||
(void) close(pipefd[0]);
|
||||
(void) pthread_join(tid, NULL);
|
||||
}
|
||||
|
||||
if (sdd.cleanup_fd != -1) {
|
||||
@ -1613,8 +1613,8 @@ err_out:
|
||||
VERIFY(0 == close(sdd.cleanup_fd));
|
||||
if (tid != 0) {
|
||||
(void) pthread_cancel(tid);
|
||||
(void) pthread_join(tid, NULL);
|
||||
(void) close(pipefd[0]);
|
||||
(void) pthread_join(tid, NULL);
|
||||
}
|
||||
return (err);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user