summaryrefslogtreecommitdiff
path: root/backend/hp-handle.c
diff options
context:
space:
mode:
Diffstat (limited to 'backend/hp-handle.c')
-rw-r--r--backend/hp-handle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/hp-handle.c b/backend/hp-handle.c
index d9be2d5..ec8adbc 100644
--- a/backend/hp-handle.c
+++ b/backend/hp-handle.c
@@ -192,7 +192,7 @@ hp_handle_startReader (HpHandle this, HpScsi scsi)
this->pipe_write_fd = -1;
}
- if (this->reader_pid == -1) /* Creating child failed ? Clean up pipe */
+ if (!sanei_thread_is_valid (this->reader_pid))
{
if ( !this->child_forked )
{