summaryrefslogtreecommitdiff
path: root/dmake/quit.c
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-01-19 20:32:02 +0000
committerCaolán McNamara <caolanm@redhat.com>2011-01-19 20:32:02 +0000
commit8f9ab92e25808922af0070f2c778ea2a2aa108eb (patch)
tree4275e9e7d8c510e342dd65dbae65c20f69dd1a34 /dmake/quit.c
parentb0ae2ae486fa42ce68dd63d71d85b585d04dcd4e (diff)
distinguish between failure exit due to dmake failure vs signal aborted
Diffstat (limited to 'dmake/quit.c')
-rw-r--r--dmake/quit.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/dmake/quit.c b/dmake/quit.c
index 54043093de24..68ade197fd24 100644
--- a/dmake/quit.c
+++ b/dmake/quit.c
@@ -37,6 +37,8 @@ Quit( sig )/*
======== Error or quit */
int sig;
{
+ int ret = ERROR_ABORT_VALUE;
+
if( sig == SIGINT )
fprintf(stderr, "Caught SIGINT. Trying to quit ...\n");
else
@@ -48,7 +50,7 @@ int sig;
#endif
if( sig == 0 )
/* Don't be verbose during regular program termination. */
- ;
+ ret = ERROR_EXIT_VALUE;
else
fprintf(stderr, "Caught signal %d. Trying to quit ...\n", sig);
@@ -78,7 +80,7 @@ int sig;
if( _quitting == 0 ) _handle_quit( ".ERROR" );
Set_dir( Makedir ); /* No Error message if we can't do it */
- Epilog( ERROR_EXIT_VALUE );
+ Epilog( ret );
}