diff options
author | Ivo Hinkelmann <ihi@openoffice.org> | 2007-10-15 14:41:12 +0000 |
---|---|---|
committer | Ivo Hinkelmann <ihi@openoffice.org> | 2007-10-15 14:41:12 +0000 |
commit | de1ebb7712ed810233dc30d20e0e893740e763fc (patch) | |
tree | cdc83c06b22f2e8cad59589619466ecc7daa2825 | |
parent | 3602a3443e46da48db9d9348ac72fe2a5079e163 (diff) |
INTEGRATION: CWS dmake411 (1.6.6); FILE MERGED
2007/09/09 19:11:35 vq 1.6.6.2: #i81273# Fixed another MinGW build problem.
2007/09/06 14:53:17 vq 1.6.6.1: #i81273# Fix MinGW build problem.
-rw-r--r-- | dmake/quit.c | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/dmake/quit.c b/dmake/quit.c index f9ea1e37c3cb..a56d595df8e5 100644 --- a/dmake/quit.c +++ b/dmake/quit.c @@ -1,6 +1,6 @@ /* $RCSfile: quit.c,v $ --- $Revision: 1.6 $ --- last change: $Author: vg $ $Date: 2007-01-18 09:32:09 $ +-- $Revision: 1.7 $ +-- last change: $Author: ihi $ $Date: 2007-10-15 15:41:12 $ -- -- SYNOPSIS -- End the dmake session. @@ -39,9 +39,14 @@ int sig; { if( sig == SIGINT ) fprintf(stderr, "Caught SIGINT. Trying to quit ...\n"); - else if( sig == SIGQUIT ) + else +#ifdef SIGQUIT + /* MinGW, maybe others also, does not have SIGQUIT. */ + if( sig == SIGQUIT ) fprintf(stderr, "Caught SIGQUIT. Trying to quit ...\n"); - else if( sig == 0 ) + else +#endif + if( sig == 0 ) /* Don't be verbose during regular program termination. */ ; else @@ -53,7 +58,12 @@ int sig; /* CTRL-c sends SIGINT and CTRL-\ sends SIGQUIT to the parent and to all * children. No need to kill them. */ - if( sig != SIGINT && sig != SIGQUIT ) + if( sig != SIGINT +#ifdef SIGQUIT + /* MinGW, maybe others also, does not have SIGQUIT. */ + && sig != SIGQUIT +#endif + ) /* This should be called Kill_all_processes(). */ Clean_up_processes(); |