summaryrefslogtreecommitdiff
path: root/pith/stream.c
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2016-06-17 16:55:13 -0600
committerEduardo Chappa <chappa@washington.edu>2016-06-17 16:55:13 -0600
commit9e9a32078793384868c49979ba08273836931807 (patch)
tree2b8d390831b16aeca9781e7d28910df718534807 /pith/stream.c
parent64a7802b19fd8f5fdab33fe687ffedbe3a8e9906 (diff)
downloadalpine-9e9a32078793384868c49979ba08273836931807.tar.xz
* Work in progress: Alpine calls non-safe functions while handling a
signal. An attempt is being made to correct this in the future. See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=825772.
Diffstat (limited to 'pith/stream.c')
-rw-r--r--pith/stream.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/pith/stream.c b/pith/stream.c
index 7a783552..00460d8d 100644
--- a/pith/stream.c
+++ b/pith/stream.c
@@ -114,7 +114,7 @@ pine_mail_open(MAILSTREAM *stream, char *mailbox, long int openflags, long int *
openflags & SP_USERFLDR ? " SP_USERFLDR" : "",
openflags & SP_USEPOOL ? " SP_USEPOOL" : "",
openflags & SP_TEMPUSE ? " SP_TEMPUSE" : "",
- debug_time(1, ps_global->debug_timestamp)));
+ debug_time(1, ps_global->debug_timestamp, ps_global->signal_in_progress)));
if(retflags)
*retflags = 0L;
@@ -569,7 +569,7 @@ pine_mail_open(MAILSTREAM *stream, char *mailbox, long int openflags, long int *
&& !strcmp(stream->dtb->name, "imap")){
dprint((7,
"pine_mail_open: cancel idle timer: TAG %08lx (%s)\n",
- stream->gensym, debug_time(1, ps_global->debug_timestamp)));
+ stream->gensym, debug_time(1, ps_global->debug_timestamp, ps_global->signal_in_progress)));
}
/*
@@ -1247,7 +1247,7 @@ pine_mail_close(MAILSTREAM *stream)
dprint((7, "pine_mail_close: %s (%s)\n",
stream && stream->mailbox ? stream->mailbox : "(NULL)",
- debug_time(1, ps_global->debug_timestamp)));
+ debug_time(1, ps_global->debug_timestamp, ps_global->signal_in_progress)));
if(sp_flagged(stream, SP_USEPOOL) && !sp_dead_stream(stream)){
@@ -1296,7 +1296,7 @@ pine_mail_close(MAILSTREAM *stream)
if(refcnt <= 0){
dprint((7,
"pine_mail_close: unlocking: start idle timer: TAG %08lx (%s)\n",
- stream->gensym, debug_time(1, ps_global->debug_timestamp)));
+ stream->gensym, debug_time(1, ps_global->debug_timestamp, ps_global->signal_in_progress)));
sp_set_last_use_time(stream, time(0));
/*
@@ -1350,7 +1350,7 @@ pine_mail_actually_close(MAILSTREAM *stream)
if(!sp_closing(stream)){
dprint((7, "pine_mail_actually_close: %s (%s)\n",
stream && stream->mailbox ? stream->mailbox : "(NULL)",
- debug_time(1, ps_global->debug_timestamp)));
+ debug_time(1, ps_global->debug_timestamp, ps_global->signal_in_progress)));
sp_set_closing(stream, 1);
@@ -1386,7 +1386,7 @@ maybe_kill_old_stream(MAILSTREAM *stream)
dprint((7,
"killing idle stream: %s (%s): idle timer = %ld secs\n",
stream && stream->mailbox ? stream->mailbox : "(NULL)",
- debug_time(1, ps_global->debug_timestamp),
+ debug_time(1, ps_global->debug_timestamp, ps_global->signal_in_progress),
(long) (time(0)-sp_last_use_time(stream))));
/*
@@ -2580,7 +2580,7 @@ sp_stream_get(char *mailbox, long unsigned int flags)
dprint((7,
"reset idle timer1: next TAG %08lx (%s)\n",
m->gensym,
- debug_time(1, ps_global->debug_timestamp)));
+ debug_time(1, ps_global->debug_timestamp, ps_global->signal_in_progress)));
sp_set_last_use_time(m, time(0));
}
@@ -2635,7 +2635,7 @@ sp_stream_get(char *mailbox, long unsigned int flags)
dprint((7,
"reset idle timer4: next TAG %08lx (%s)\n",
m->gensym,
- debug_time(1, ps_global->debug_timestamp)));
+ debug_time(1, ps_global->debug_timestamp, ps_global->signal_in_progress)));
sp_set_last_use_time(m, time(0));
return(m);
@@ -2663,7 +2663,7 @@ sp_stream_get(char *mailbox, long unsigned int flags)
dprint((7,
"reset idle timer2: next TAG %08lx (%s)\n",
m->gensym,
- debug_time(1, ps_global->debug_timestamp)));
+ debug_time(1, ps_global->debug_timestamp, ps_global->signal_in_progress)));
sp_set_last_use_time(m, time(0));
return(m);
}
@@ -2696,7 +2696,7 @@ sp_stream_get(char *mailbox, long unsigned int flags)
dprint((7,
"reset idle timer3: next TAG %08lx (%s)\n",
m->gensym,
- debug_time(1, ps_global->debug_timestamp)));
+ debug_time(1, ps_global->debug_timestamp, ps_global->signal_in_progress)));
sp_set_last_use_time(m, time(0));
return(m);
}