Gentoo Archives: gentoo-dev

From: "Paweł Hajdan
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] virtualx eclass possible issue
Date: Sat, 12 Mar 2011 10:38:23
Message-Id: 4D7B4CE8.6030808@gentoo.org
1 One of my ebuilds is using virtualx eclass, and I noticed the following
2 code inside the eclass:
3
4 retval=$?
5
6 # Now kill Xvfb
7 kill $(cat /tmp/.X${XDISPLAY}-lock)
8 else
9 debug-print "${FUNCNAME}: attaching to running X display"
10 # Normal make if we can connect to an X display
11 debug-print "${FUNCNAME}: ${VIRTUALX_COMMAND} \"$@\""
12 ${VIRTUALX_COMMAND} "$@"
13 retval=$?
14 fi
15
16 # die if our command failed
17 [[ $? -ne 0 ]] && die "${FUNCNAME}: the ${VIRTALX_COMMAND} failed."
18
19 Shouldn't that last line look more like this (notice $retval instead of $?):
20
21 [[ $retval -ne 0 ]] && die "${FUNCNAME}: the ${VIRTALX_COMMAND} failed."
22
23 What do you think?

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
[gentoo-dev] Re: virtualx eclass possible issue Ryan Hill <dirtyepic@g.o>
Re: [gentoo-dev] virtualx eclass possible issue "Michał Górny" <mgorny@g.o>
Re: [gentoo-dev] virtualx eclass possible issue "Tomáš Chvátal" <scarabeus@g.o>