Skip to content

Commit

Permalink
kill any previous compiz process as it can hangs before --replace (LP…
Browse files Browse the repository at this point in the history
…: #919132)
  • Loading branch information
didrocks committed Jan 20, 2012
1 parent b036fd6 commit 6b5cef8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tools/unity.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,10 @@ def process_and_start_unity (verbose, debug_mode, compiz_args, log_file):
if log_file:
cli.extend(['2>&1', '|', 'tee', log_file])

# kill a previous compiz if was there (this is a hack as compiz can
# sometimes get stuck and not exit on --replace)
subprocess.call (["pkill", "compiz"])

# shell = True as it's the simpest way to | tee.
# In this case, we need a string and not a list
# FIXME: still some bug with 2>&1 not showing everything before wait()
Expand Down

0 comments on commit 6b5cef8

Please sign in to comment.