chiark / gitweb /
SIGTERM and wait for subprocesses on server shutdown.
[disorder] / lib / sendmail.c
index 5b9a82cb26eef9dfd0acd33ecd9a6e28b148dc68..a01b9d3dec458b5d097bd26d856b196e57aba1ed 100644 (file)
@@ -126,7 +126,7 @@ static int sendmailfp(const char *tag, FILE *in, FILE *out,
   time_t now;
   char date[128];
 
-  time(&now);
+  xtime(&now);
   gmtime_r(&now, &ut);
   strftime(date, sizeof date, "%a, %d %b %Y %H:%M:%S +0000", &ut);
   gcry_create_nonce(idbuf, sizeof idbuf);