From e8d1180467da98c53663e462800f793d2341f5a1 Mon Sep 17 00:00:00 2001 From: Alex Riesen Date: Wed, 22 Apr 2009 09:27:22 +0200 Subject: Wait for git diff to finish in git difftool In ActivetState Perl, exec does not wait for the started program. This breaks difftool tests and may cause unexpected behaviour: git difftool has returned, but the rest of code (diff and possibly the interactive program are still running in the background. Acked-by: David Aguilar Signed-off-by: Junio C Hamano diff --git a/git-difftool.perl b/git-difftool.perl index 948ff7f..bd828c2 100755 --- a/git-difftool.perl +++ b/git-difftool.perl @@ -82,4 +82,5 @@ sub generate_command } setup_environment(); -exec(generate_command()); +my $rc = system(generate_command()); +exit($rc | ($rc >> 8)); -- cgit v0.10.2-6-g49f6