diff options
author | Eduardo Chappa <chappa@washington.edu> | 2016-06-17 16:55:13 -0600 |
---|---|---|
committer | Eduardo Chappa <chappa@washington.edu> | 2016-06-17 16:55:13 -0600 |
commit | 9e9a32078793384868c49979ba08273836931807 (patch) | |
tree | 2b8d390831b16aeca9781e7d28910df718534807 /pith/osdep | |
parent | 64a7802b19fd8f5fdab33fe687ffedbe3a8e9906 (diff) | |
download | alpine-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/osdep')
-rw-r--r-- | pith/osdep/debugtime.c | 5 | ||||
-rw-r--r-- | pith/osdep/debugtime.h | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/pith/osdep/debugtime.c b/pith/osdep/debugtime.c index a1ee3b2a..09fc5c30 100644 --- a/pith/osdep/debugtime.c +++ b/pith/osdep/debugtime.c @@ -29,7 +29,7 @@ static char rcsid[] = "$Id: debugtime.c 770 2007-10-24 00:23:09Z hubert@u.washin * If include_date is set the date is appended. */ char * -debug_time(int include_date, int include_subseconds) +debug_time(int include_date, int include_subseconds, int signal_in_progress) { time_t t; struct tm *tm_now; @@ -43,6 +43,9 @@ debug_time(int include_date, int include_subseconds) char subsecond[8]; char datestr[7]; + if(signal_in_progress) + return _("Time Unavailable"); + timestring[0] = '\0'; #if HAVE_GETTIMEOFDAY diff --git a/pith/osdep/debugtime.h b/pith/osdep/debugtime.h index 6a3eda1e..9e663952 100644 --- a/pith/osdep/debugtime.h +++ b/pith/osdep/debugtime.h @@ -22,7 +22,7 @@ * Exported Prototypes */ #ifdef DEBUG -char *debug_time(int, int); +char *debug_time(int, int, int); #endif int get_time(TIMEVAL_S *); long time_diff(TIMEVAL_S *, TIMEVAL_S *); |