def test_still_running(): with timer(5): # Run something forever so we can kill it proc = iutil.startProgram(["/bin/sh", "-c", "while true; do sleep 1; done"]) iutil.watchProcess(proc, "test1") proc.kill() # Wait for the SIGCHLD signal.pause()
def test_still_running(): with timer(5): # Run something forever so we can kill it proc = iutil.startProgram(["/bin/sh", "-c", "while true; do sleep 1; done"]) iutil.watchProcess(proc, "test1") proc.kill() # Wait for the SIGCHLD signal.pause()
def do_startup_x11_actions(): """Start the window manager. When metacity actually connects to the X server is unknowable, but fortunately it doesn't matter. metacity does not need to be the first connection to Xorg, and if anaconda starts up before metacity, metacity will just take over and maximize the window and make everything right, fingers crossed. Add XDG_DATA_DIRS to the environment to pull in our overridden schema files. """ datadir = os.environ.get('ANACONDA_DATADIR', '/usr/share/anaconda') if 'XDG_DATA_DIRS' in os.environ: xdg_data_dirs = datadir + '/window-manager:' + os.environ['XDG_DATA_DIRS'] else: xdg_data_dirs = datadir + '/window-manager:/usr/share' childproc = iutil.startProgram(["metacity", "--display", ":1", "--sm-disable"], env_add={'XDG_DATA_DIRS': xdg_data_dirs}) iutil.watchProcess(childproc, "metacity")
def do_startup_x11_actions(): """Start the window manager. When metacity actually connects to the X server is unknowable, but fortunately it doesn't matter. metacity does not need to be the first connection to Xorg, and if anaconda starts up before metacity, metacity will just take over and maximize the window and make everything right, fingers crossed. Add XDG_DATA_DIRS to the environment to pull in our overridden schema files. """ datadir = os.environ.get('ANACONDA_DATADIR', '/usr/share/anaconda') if 'XDG_DATA_DIRS' in os.environ: xdg_data_dirs = datadir + '/window-manager:' + os.environ[ 'XDG_DATA_DIRS'] else: xdg_data_dirs = datadir + '/window-manager:/usr/share' childproc = iutil.startProgram( ["metacity", "--display", ":1", "--sm-disable"], env_add={'XDG_DATA_DIRS': xdg_data_dirs}) iutil.watchProcess(childproc, "metacity")