summaryrefslogtreecommitdiff
path: root/dmake
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2008-03-05 17:29:56 +0000
committerKurt Zenker <kz@openoffice.org>2008-03-05 17:29:56 +0000
commita741df961132d928c7b5ba64b53e39097d13e1e1 (patch)
tree5a875a54ca970606ba58b8ccc75b87db318f2cb9 /dmake
parent044f4362e7775d4de054c9d9bd22fd7227dbada2 (diff)
INTEGRATION: CWS dmake412_DEV300 (1.7.2); FILE MERGED
2008/01/08 00:31:31 vq 1.7.2.1: #i83540# Prevent possible invinite loop when aborting.
Diffstat (limited to 'dmake')
-rw-r--r--dmake/quit.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/dmake/quit.c b/dmake/quit.c
index a56d595df8e5..54043093de24 100644
--- a/dmake/quit.c
+++ b/dmake/quit.c
@@ -1,6 +1,6 @@
/* $RCSfile: quit.c,v $
--- $Revision: 1.7 $
--- last change: $Author: ihi $ $Date: 2007-10-15 15:41:12 $
+-- $Revision: 1.8 $
+-- last change: $Author: kz $ $Date: 2008-03-05 18:29:56 $
--
-- SYNOPSIS
-- End the dmake session.
@@ -53,6 +53,7 @@ int sig;
fprintf(stderr, "Caught signal %d. Trying to quit ...\n", sig);
if( _quitting ) return; /* Guard to only quit once. */
+ _quitting = 1;
while( Closefile() != NIL( FILE ) );
@@ -104,7 +105,6 @@ char *err_target;
cp = hp->CP_OWNR;
Glob_attr |= A_IGNORE;
- _quitting = 1;
cp->ce_flag |= F_TARGET;
Make( cp, NIL(CELL) );