-static int process_stdout_cb(void *arg)
-{
- struct process_info *procinfo = arg;
- int rc;
-
- rc = process_read_stdout_once(procinfo, NULL);
-
- /* if we're going to signal to the waitset that we're done (ie, non-zero
- * return value), then the waiters will remove us, so we drop the
- * reference */
- if (rc < 0) {
- talloc_unlink(procset, procinfo);
- procinfo->stdout_waiter = NULL;
- rc = -1;
- } else {
- rc = 0;
- }
-
- return rc;
-}
-
-int process_stdout_custom(struct process_info *procinfo, char **line)