diff options
Diffstat (limited to 'support/support_process_state.c')
-rw-r--r-- | support/support_process_state.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/support/support_process_state.c b/support/support_process_state.c index 76dc798728..e303c78fc8 100644 --- a/support/support_process_state.c +++ b/support/support_process_state.c @@ -59,7 +59,7 @@ support_process_state_wait (pid_t pid, enum support_process_state state) for (;;) { char cur_state = -1; - while (xgetline (&line, &linesiz, fstatus) != -1) + while (xgetline (&line, &linesiz, fstatus) > 0) if (strncmp (line, "State:", strlen ("State:")) == 0) { TEST_COMPARE (sscanf (line, "%*s %c", &cur_state), 1); |