From d29507f5c5e69e528f681d2e823aec10a98d6541 Mon Sep 17 00:00:00 2001 From: "Alex Xu (Hello71)" Date: Wed, 10 Aug 2022 13:18:31 -0400 Subject: virtualwl.eclass: don't use nonfatal not required anymore now that we use pipe monitoring --- eclass/virtualwl.eclass | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'eclass') 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 -- cgit v1.2.3-70-g09d2