summaryrefslogtreecommitdiff
path: root/src/gdialog.in
diff options
context:
space:
mode:
authorMike Newman <MikeGTN@src.gnome.org>2003-06-29 16:21:12 +0000
committerMike Newman <MikeGTN@src.gnome.org>2003-06-29 16:21:12 +0000
commit425724a8d1c5624bd6db189267466b7aeaaa3e61 (patch)
tree530cc69d3a32f30599c98648cf16b8b3d4c76ccb /src/gdialog.in
parent7755ff4e80b47831dc3633a006ad4041d6d51239 (diff)
gdialog wrapper return values fixed
Diffstat (limited to 'src/gdialog.in')
-rwxr-xr-xsrc/gdialog.in8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/gdialog.in b/src/gdialog.in
index 48699d8..004571b 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);
+