projects
/
archipelago
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c30767e
)
Remove async unsafe functions from signal handlers
author
Filippos Giannakos
<philipgian@grnet.gr>
Mon, 8 Apr 2013 15:37:23 +0000
(18:37 +0300)
committer
Filippos Giannakos
<philipgian@grnet.gr>
Mon, 8 Apr 2013 15:37:23 +0000
(18:37 +0300)
xseg/peers/user/peer.c
patch
|
blob
|
history
diff --git
a/xseg/peers/user/peer.c
b/xseg/peers/user/peer.c
index
defa168
..
7498dcd
100644
(file)
--- a/
xseg/peers/user/peer.c
+++ b/
xseg/peers/user/peer.c
@@
-134,7
+134,7
@@
static inline int isTerminate()
void signal_handler(int signal)
{
- XSEGLOG2(&lc, I, "Caught signal. Terminating gracefully");
+// XSEGLOG2(&lc, I, "Caught signal. Terminating gracefully");
terminated = 1;
#ifdef MT
wake_up_next_thread(global_peer);
@@
-143,7
+143,7
@@
void signal_handler(int signal)
void renew_logfile(int signal)
{
- XSEGLOG2(&lc, I, "Caught signal. Renewing logfile");
+// XSEGLOG2(&lc, I, "Caught signal. Renewing logfile");
renew_logctx(&lc, NULL, verbose, NULL, REOPEN_FILE);
}