Author: locilka Date: Thu Jul 12 12:00:18 2007 New Revision: 39345 URL: http://svn.opensuse.org/viewcvs/yast?rev=39345&view=rev Log: - Fixed ag_background to always read the process exit status before returning it (#285920). - 2.15.7 Modified: trunk/core/VERSION trunk/core/agents-perl/ag_background trunk/core/package/yast2-core.changes Modified: trunk/core/VERSION URL: http://svn.opensuse.org/viewcvs/yast/trunk/core/VERSION?rev=39345&r1=39344&r2=39345&view=diff ============================================================================== --- trunk/core/VERSION (original) +++ trunk/core/VERSION Thu Jul 12 12:00:18 2007 @@ -1 +1 @@ -2.15.8 +2.15.7 Modified: trunk/core/agents-perl/ag_background URL: http://svn.opensuse.org/viewcvs/yast/trunk/core/agents-perl/ag_background?rev=39345&r1=39344&r2=39345&view=diff ============================================================================== --- trunk/core/agents-perl/ag_background (original) +++ trunk/core/agents-perl/ag_background Thu Jul 12 12:00:18 2007 @@ -91,6 +91,12 @@ ycp::Return(""); } +my $exit = 0; + +sub ReadExitCode { + $exit = $? >> 8; # high 8 bits are exit value +} + # install SIGCHLD handler $SIG{CHLD} = \&Handler; @@ -112,8 +118,6 @@ my $pipe_defined = 0; my $pipe_defined_err = 0; -my $exit = 0; - $| = 1; # main loop @@ -235,6 +239,7 @@ } elsif ($path eq '.status') { + ReadExitCode(); ycp::Return($exit); } elsif ($path eq '.newout') @@ -368,7 +373,7 @@ } close(RD); - $exit = $? >> 8; # high 8 bits are exit value + ReadExitCode(); } else { @@ -417,7 +422,7 @@ } close(ERR); - $exit = $? >> 8; # high 8 bits are exit value + ReadExitCode(); } else { Modified: trunk/core/package/yast2-core.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/core/package/yast2-core.changes?rev=39345&r1=39344&r2=39345&view=diff ============================================================================== --- trunk/core/package/yast2-core.changes (original) +++ trunk/core/package/yast2-core.changes Thu Jul 12 12:00:18 2007 @@ -1,4 +1,11 @@ ------------------------------------------------------------------- +Thu Jul 12 11:52:24 CEST 2007 - locilka@suse.cz + +- Fixed ag_background to always read the process exit status before + returning it (#285920). +- 2.15.7 + +------------------------------------------------------------------- Mon Jun 25 18:10:49 CEST 2007 - mvidner@suse.cz - ag_background: added a test suite. -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org