misc: move exit status into trap handler
authorDarrick J. Wong <djwong@kernel.org>
Mon, 21 Jun 2021 15:54:53 +0000 (08:54 -0700)
committerEryu Guan <guaneryu@gmail.com>
Sun, 27 Jun 2021 14:49:33 +0000 (22:49 +0800)
commitf390798cebf3a59134998863416285815f1f3962
tree1e25624b54b963d50bba2058410bdf91316309d7
parente486a19d03b2510e653b41633b528c80d358c90e
misc: move exit status into trap handler

Move the "exit $status" clause of the _cleanup function into the
argument to the "trap" command so that we can standardize the
registration of the atexit cleanup code in the next few patches.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Chandan Babu R <chandanrlinux@gmail.com>
Reviewed-by: Allison Henderson <allison.henderson@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
tests/generic/068
tests/xfs/004