summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorAlex Xu (Hello71) <alex_y_xu@yahoo.ca>2022-08-10 13:18:31 -0400
committerAlex Xu (Hello71) <alex_y_xu@yahoo.ca>2022-08-10 13:18:31 -0400
commitd29507f5c5e69e528f681d2e823aec10a98d6541 (patch)
tree6c6fa05be33878078f5ce0076e0cc9da94a90a64 /eclass
parent198669889a2b997737dd43a8558fe0f48aae7ae6 (diff)
downloadgentoo-overlay-d29507f5c5e69e528f681d2e823aec10a98d6541.tar.xz
gentoo-overlay-d29507f5c5e69e528f681d2e823aec10a98d6541.zip
virtualwl.eclass: don't use nonfatal
not required anymore now that we use pipe monitoring
Diffstat (limited to 'eclass')
-rw-r--r--eclass/virtualwl.eclass15
1 files changed, 1 insertions, 14 deletions
diff --git a/eclass/virtualwl.eclass b/eclass/virtualwl.eclass
index d2715bc..c3391ce 100644
--- a/eclass/virtualwl.eclass
+++ b/eclass/virtualwl.eclass
@@ -56,16 +56,6 @@ esac
# @DESCRIPTION:
# Start a new wayland session and run commands in it.
#
-# IMPORTANT: This command is run nonfatal !!!
-#
-# This means we are checking for the return code and raise an exception if it
-# isn't 0. So you need to make sure that all commands return a proper
-# code and not just die. All eclass function used should support nonfatal
-# calls properly.
-#
-# The rationale behind this is the tear down of the started wayland session. A
-# straight die would leave a running session behind.
-#
# Example:
#
# @CODE
@@ -105,12 +95,9 @@ virtwl() {
read WAYLAND_DISPLAY <&${VIRTWL[0]}
debug-print "${FUNCNAME}: $@"
- nonfatal "$@"
- retval=$?
+ "$@"
[[ -n $VIRTWL_PID ]] || die "tinywl exited unexpectedly"
exec {VIRTWL[0]}<&- {VIRTWL[1]}>&-
-
- [[ $retval = 0 ]] || die "Failed to run '$@'"
}
fi