From 965f78cbbeae9994404d1e93395936aa16e02966 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Fri, 28 Nov 2003 21:20:15 +0000 Subject: [PATCH] * gendevices: Issue error when shilka is missing. --- winsup/cygwin/ChangeLog | 4 ++++ winsup/cygwin/gendevices | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 44e817b90..9a218b591 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,7 @@ +2003-11-28 Christopher Faylor + + * gendevices: Issue error when shilka is missing. + 2003-11-28 Christopher Faylor * include/cygwin/signal.h: New file. 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";