summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/gendevices
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2003-11-28 21:20:15 +0000
committerChristopher Faylor <me@cgf.cx>2003-11-28 21:20:15 +0000
commit965f78cbbeae9994404d1e93395936aa16e02966 (patch)
tree59bfe20878e11f1e109389a857d3f9bbb80cee0f /winsup/cygwin/gendevices
parent93f8e673843946679c77e8e342285109bce3540a (diff)
downloadcygnal-965f78cbbeae9994404d1e93395936aa16e02966.tar.gz
cygnal-965f78cbbeae9994404d1e93395936aa16e02966.tar.bz2
cygnal-965f78cbbeae9994404d1e93395936aa16e02966.zip
* gendevices: Issue error when shilka is missing.
Diffstat (limited to 'winsup/cygwin/gendevices')
-rwxr-xr-xwinsup/cygwin/gendevices6
1 files changed, 5 insertions, 1 deletions
diff --git a/winsup/cygwin/gendevices b/winsup/cygwin/gendevices
index cd7a53b9e..d8a5a5d73 100755
--- a/winsup/cygwin/gendevices
+++ b/winsup/cygwin/gendevices
@@ -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";