diff options
author | Mike Newman <MikeGTN@src.gnome.org> | 2003-06-29 16:21:12 +0000 |
---|---|---|
committer | Mike Newman <MikeGTN@src.gnome.org> | 2003-06-29 16:21:12 +0000 |
commit | 425724a8d1c5624bd6db189267466b7aeaaa3e61 (patch) | |
tree | 530cc69d3a32f30599c98648cf16b8b3d4c76ccb | |
parent | Updated Polish translation. (diff) | |
download | zenity-425724a8d1c5624bd6db189267466b7aeaaa3e61.tar.gz zenity-425724a8d1c5624bd6db189267466b7aeaaa3e61.tar.bz2 zenity-425724a8d1c5624bd6db189267466b7aeaaa3e61.zip |
gdialog wrapper return values fixed
-rw-r--r-- | ChangeLog | 5 | ||||
-rwxr-xr-x | src/gdialog.in | 8 |
2 files changed, 12 insertions, 1 deletions
@@ -1,3 +1,8 @@ +2003-06-20 Mike Newman <mikegtn@gnome.org> + + * src/gdialog.in: fix return value with patch from Yann + <bloch@iie.cnam.fr>. Thanks! + 2003-06-21 Mike Newman <mikegtn@gnome.org> * configure.in: Added en_GB to ALL_LINGUAS diff --git a/src/gdialog.in b/src/gdialog.in index 48699d8c..004571ba 100755 --- a/src/gdialog.in +++ b/src/gdialog.in @@ -305,4 +305,10 @@ ARG: while ($argn < $args) { # execute the constructed zenity command line $command .= " 2>&1"; -system($command); + +# perl doc: The return value of system() is the exit status of the +#program as returned by the wait() call. To get the actual exit value +# divide by 256. + +exit(system($command)/256); + |