summaryrefslogtreecommitdiff
path: root/backend/tamarack.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2017-07-15 11:25:39 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2017-07-15 11:25:39 +0200
commit1edb02101a9306fc711cd422ed507d18165b1691 (patch)
treebd2d48a139bfbe869f4f49359b63097931a45e7b /backend/tamarack.c
parent2ca8a81bd0d99fe4d75c229d0e988d8ef710285f (diff)
move from support/1.0.27 to feature/1.0.27
Diffstat (limited to 'backend/tamarack.c')
-rw-r--r--backend/tamarack.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/tamarack.c b/backend/tamarack.c
index e7073af..6fc259f 100644
--- a/backend/tamarack.c
+++ b/backend/tamarack.c
@@ -470,7 +470,7 @@ do_cancel (Tamarack_Scanner *s)
do_eof (s);
- if (s->reader_pid != -1)
+ if (sanei_thread_is_valid (s->reader_pid))
{
int exit_status;
@@ -1442,7 +1442,7 @@ sane_cancel (SANE_Handle handle)
{
Tamarack_Scanner *s = handle;
- if (s->reader_pid != -1)
+ if (sanei_thread_is_valid (s->reader_pid))
sanei_thread_kill (s->reader_pid);
s->scanning = SANE_FALSE;
}