improve error handling
[ust.git] / ustd / ustd.c
index b6b362f4fcc3a44eb5c0cba3e84e6eeb49efaa60..7d1eb49cec6de8d51157ca3c377a0d0be8d2318c 100644 (file)
@@ -112,11 +112,6 @@ int get_subbuffer(struct buffer_info *buf)
                retval = -1;
                goto end;
        }
-       else if(result == 0) {
-               DBG("app died while being traced");
-               retval = GET_SUBBUF_DIED;
-               goto end;
-       }
 
        result = sscanf(received_msg, "%as %ld", &rep_code, &buf->consumed_old);
        if(result != 2 && result != 1) {
@@ -278,6 +273,7 @@ void *consumer_thread(void *arg)
                        WARN("application died while putting subbuffer");
                        /* FIXME: probably need to skip the first subbuffer in finish_consuming_dead_subbuffer */
                        finish_consuming_dead_subbuffer(buf);
+                       break;
                }
                else if(result == PUT_SUBBUF_OK) {
                }
This page took 0.022369 seconds and 4 git commands to generate.