Index: trunk/ippScripts/scripts/mdc2list.pl
===================================================================
--- trunk/ippScripts/scripts/mdc2list.pl	(revision 9446)
+++ trunk/ippScripts/scripts/mdc2list.pl	(revision 10700)
@@ -70,3 +70,8 @@
 }
 
-END { system("sync") == 0 or die "failed to execute sync: $!" }
+END {
+    my $status = $?;
+    system("sync") == 0
+        or die "failed to execute sync: $!" ;
+    $? = $status;
+}
