OSDN Git Service

* gendevices: Issue error when shilka is missing.
authorcgf <cgf>
Fri, 28 Nov 2003 21:20:15 +0000 (21:20 +0000)
committercgf <cgf>
Fri, 28 Nov 2003 21:20:15 +0000 (21:20 +0000)
winsup/cygwin/ChangeLog
winsup/cygwin/gendevices

index 44e817b..9a218b5 100644 (file)
@@ -1,5 +1,9 @@
 2003-11-28  Christopher Faylor  <cgf@redhat.com>
 
+       * gendevices: Issue error when shilka is missing.
+
+2003-11-28  Christopher Faylor  <cgf@redhat.com>
+
        * include/cygwin/signal.h: New file.
 
 2003-11-28  Christopher Faylor  <cgf@redhat.com>
index cd7a53b..d8a5a5d 100755 (executable)
@@ -55,7 +55,11 @@ close SHILKA;
 
 chdir '/tmp';
 system qw'shilka -length -strip -no-definitions', $shilka;
-exit $? if $?;
+if ($? == -1) {
+    die "$0: shilka command missing? - $!\n";
+} else {
+    exit $? if $?;
+}
 chdir $cwd;
 unlink $shilka;
 open(C, $c) or die "$0: couldn't open $c - $!\n";