biod.pnpi.spb.ru
/
alexxy
/
gromacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
075b532
)
Added #ifdef HAVE_SIGUSR1 around SIGUSR1 refs in sighandler.c
author
Peter Kasson
<kasson@vspm47.Stanford.EDU>
Tue, 11 May 2010 16:48:37 +0000
(09:48 -0700)
committer
Peter Kasson
<kasson@vspm47.Stanford.EDU>
Tue, 11 May 2010 16:48:37 +0000
(09:48 -0700)
src/gmxlib/sighandler.c
patch
|
blob
|
history
diff --git
a/src/gmxlib/sighandler.c
b/src/gmxlib/sighandler.c
index eef5cc9bbca768dff7a41a67ceb9f722b448c376..d78f10b9aa6e65aad96eda09958e1e615a7f41e5 100644
(file)
--- a/
src/gmxlib/sighandler.c
+++ b/
src/gmxlib/sighandler.c
@@
-86,7
+86,9
@@
static RETSIGTYPE signal_handler(int n)
if (stop_condition >= gmx_stop_cond_abort)
abort();
break;
+ #ifdef HAVE_SIGUSR1
case SIGUSR1:
+ #endif
default:
stop_condition=gmx_stop_cond_next;
last_signal_name=6;
@@
-113,6
+115,7
@@
void signal_handler_install(void)
}
signal(SIGINT,signal_handler);
}
+ #ifdef HAVE_SIGUSR1
if (getenv("GMX_NO_USR1") == NULL)
{
if (debug)
@@
-121,6
+124,7
@@
void signal_handler_install(void)
}
signal(SIGUSR1,signal_handler);
}
+ #endif
}
gmx_stop_cond_t gmx_get_stop_condition(void)