+ rc = p->exit_status;
+ else {
+ pb_debug("%s: process_run_sync failed: %s.\n", __func__,
+ p->path);
+ if (stdout)
+ pb_debug("%s: stdout: %s\n\n", __func__, p->stdout_buf);
+ goto exit;
+ }
+
+ if (!stdout)
+ goto exit;
+
+ *stdout = talloc(ctx, struct process_stdout);
+
+ if (!*stdout) {
+ rc = -1;
+ goto exit;
+ }