Commits

Greg Ward  committed 42bbf8c

capture: add capture_failed() (currently disabled and unused)

  • Participants
  • Parent commits 505024e

Comments (0)

Files changed (2)

File src/capture.c

     return NULL;
 }
 
+#if 0
+int
+capture_failed(capture_t *capture)
+{
+    return (capture == NULL || capture->status > 0 || capture->signal > 0);
+}
+#endif
+
 /*
  * To build a standalone executable for testing:
  *    make src/capture

File src/capture.h

 void
 free_capture(capture_t *capture);
 
+#if 0
+/* return true if capture_child() failed: capture is NULL, or the
+ * child exited with non-zero status, or the child was killed by a signal
+ */
+int
+capture_failed(capture_t *capture);
 #endif
+
+#endif