aboutsummaryrefslogtreecommitdiff
path: root/libbutl/manifest-serializer.bash.in
diff options
context:
space:
mode:
Diffstat (limited to 'libbutl/manifest-serializer.bash.in')
-rw-r--r--libbutl/manifest-serializer.bash.in7
1 files changed, 6 insertions, 1 deletions
diff --git a/libbutl/manifest-serializer.bash.in b/libbutl/manifest-serializer.bash.in
index fa6b94a..ce99779 100644
--- a/libbutl/manifest-serializer.bash.in
+++ b/libbutl/manifest-serializer.bash.in
@@ -64,9 +64,14 @@ function butl_manifest_serializer_start () # [--long-lines] [<file>]
# See notes in butl_manifest_parser_start() on bash co-process issues.
#
- coproc { butl_serialize_manifest "${ops[@]}"; } >&"$butl_manifest_serializer_ofd"
+ coproc { kill -SIGSTOP $BASHPID; \
+ exec "$(butl_path)/manifest" "${ops[@]}" serialize; } \
+ >&"$butl_manifest_serializer_ofd"
+
butl_manifest_serializer_ifd="${COPROC[1]}"
butl_manifest_serializer_pid="$COPROC_PID"
+
+ butl_resume_process "$butl_manifest_serializer_pid"
}
# Finish the manifest serialization co-process.