From e3a7fd9cbcbf392328db97584164973485cd86f8 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Sun, 22 Nov 2015 15:02:41 +0000 Subject: [PATCH] Small improvements with xorriso_broker.sh --- frontend/xorriso_broker.sh | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/frontend/xorriso_broker.sh b/frontend/xorriso_broker.sh index 3fe855e5..3f8a9e28 100755 --- a/frontend/xorriso_broker.sh +++ b/frontend/xorriso_broker.sh @@ -130,6 +130,7 @@ then # xorriso is not started yet # Check for xorriso version which knows command -named_pipe_loop + echo "Checking xorriso version ..." >&2 xorriso_version_req="1.3.2" version=$("$xorriso" -version | grep '^xorriso version' | sed -e 's/^xorriso version : //') @@ -144,8 +145,26 @@ then exit 2 fi - mknod "$cmd_pipe" p - mknod "$result_pipe" p + if mknod "$cmd_pipe" p + then + echo "Created named pipe for xorriso commands: $cmd_pipe" >&2 + else + echo "Failed to create named pipe for xorriso commands: $cmd_pipe" >&2 + exit 3 + fi + if mknod "$result_pipe" p + then + echo "Created named pipe for xorriso result channel: $result_pipe" >&2 + else + echo \ + "Failed to create named pipe for xorriso result channel: $result_pipe" >&2 + if rm "$cmd_pipe" + then + echo "Removed named pipe for xorriso commands: $cmd_pipe" >&2 + fi + exit 3 + fi + echo "Starting xorriso process ..." >&2 "$xorriso" -abort_on NEVER -for_backup \ -named_pipe_loop cleanup:buffered "$cmd_pipe" "$result_pipe" "-" \ >&2 &