Use *run_ioctl* and *run_ioctl_retry*
Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
This commit is contained in:
parent
0d1730af37
commit
cfca19b024
@ -457,7 +457,13 @@ int run_ioctl_interruptible(int fd, int command, void *cmd,
|
|||||||
pthread_sigmask(SIG_BLOCK, &sigset, NULL);
|
pthread_sigmask(SIG_BLOCK, &sigset, NULL);
|
||||||
|
|
||||||
pthread_create(&thread, 0, print_command_progress, &ps);
|
pthread_create(&thread, 0, print_command_progress, &ps);
|
||||||
ioctl_res = run_ioctl(fd, command, cmd);
|
|
||||||
|
if (retry) {
|
||||||
|
ioctl_res = run_ioctl_retry(fd, command, cmd);
|
||||||
|
} else {
|
||||||
|
ioctl_res = run_ioctl(fd, command, cmd);
|
||||||
|
}
|
||||||
|
|
||||||
if (!interrupted) {
|
if (!interrupted) {
|
||||||
close(fdspipe[1]);
|
close(fdspipe[1]);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user