-/* $OpenBSD: htdigest.c,v 1.11 2008/05/23 12:12:01 mbalmer Exp $ */
+/* $OpenBSD: htdigest.c,v 1.12 2008/08/11 17:15:56 tobias Exp $ */
/* ====================================================================
* The Apache Software License, Version 1.1
#define MAX_STRING_LEN 256
+#define INTR_MSG "\nInterrupted.\n"
+
static char tn[MAX_STRING_LEN];
static void
static void
interrupted(void)
{
- fprintf(stderr, "Interrupted.\n");
+ write(STDERR_FILENO, INTR_MSG, sizeof(INTR_MSG) - 1);
if (tn[0] != '\0')
unlink(tn);
- exit(1);
+ _exit(1);
}
-/* $OpenBSD: htpasswd.c,v 1.17 2008/05/23 12:12:01 mbalmer Exp $ */
+/* $OpenBSD: htpasswd.c,v 1.18 2008/08/11 17:15:56 tobias Exp $ */
/* ====================================================================
* The Apache Software License, Version 1.1
#define ALG_APSHA 3
#define ALG_APBLF 4
+#define INTR_MSG "\nInterrupted.\n"
#define ERR_FILEPERM 1
#define ERR_SYNTAX 2
static void
interrupted(void)
{
- fprintf(stderr, "Interrupted.\n");
+ write(STDERR_FILENO, INTR_MSG, sizeof(INTR_MSG) - 1);
if (tempfilename[0] != '\0')
unlink(tempfilename);
- exit(ERR_INTERRUPTED);
+ _exit(ERR_INTERRUPTED);
}
/*