/[gentoo-x86]/eclass/virtualx.eclass
Gentoo

Diff of /eclass/virtualx.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.42 Revision 1.43
1# Copyright 1999-2012 Gentoo Foundation 1# Copyright 1999-2012 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/virtualx.eclass,v 1.42 2012/10/02 08:14:36 kensington Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/virtualx.eclass,v 1.43 2012/10/03 22:47:12 chithanh Exp $
4 4
5# @ECLASS: virtualx.eclass 5# @ECLASS: virtualx.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# x11@gentoo.org 7# x11@gentoo.org
8# @AUTHOR: 8# @AUTHOR:
142 142
143 export DISPLAY=:${XDISPLAY} 143 export DISPLAY=:${XDISPLAY}
144 # Do not break on error, but setup $retval, as we need 144 # Do not break on error, but setup $retval, as we need
145 # to kill Xvfb 145 # to kill Xvfb
146 debug-print "${FUNCNAME}: ${VIRTUALX_COMMAND} \"$@\"" 146 debug-print "${FUNCNAME}: ${VIRTUALX_COMMAND} \"$@\""
147 if has "${EAPI}" 2 3; then
148 ${VIRTUALX_COMMAND} "$@"
149 retval=$?
150 else
147 nonfatal ${VIRTUALX_COMMAND} "$@" 151 nonfatal ${VIRTUALX_COMMAND} "$@"
148 retval=$? 152 retval=$?
153 fi
149 154
150 # Now kill Xvfb 155 # Now kill Xvfb
151 kill $(cat /tmp/.X${XDISPLAY}-lock) 156 kill $(cat /tmp/.X${XDISPLAY}-lock)
152 else 157 else
153 debug-print "${FUNCNAME}: attaching to running X display" 158 debug-print "${FUNCNAME}: attaching to running X display"

Legend:
Removed from v.1.42  
changed lines
  Added in v.1.43

  ViewVC Help
Powered by ViewVC 1.1.20