aboutsummaryrefslogtreecommitdiffstats
path: root/src/radharc.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@member.fsf.org>2016-01-04 01:10:18 +0100
committerMattias Andrée <maandree@member.fsf.org>2016-01-04 01:10:18 +0100
commit766d936d60d11cef4d8b126cdd781a1828ae9964 (patch)
treeafa410968d7bc5b690c6caf36998f669fe4d905a /src/radharc.c
parentrestart-radharc: only kill your own radharc, otherwise it is possible that root kills another user's radharc and replaces it with an instances own ... (diff)
downloadradharc-766d936d60d11cef4d8b126cdd781a1828ae9964.tar.gz
radharc-766d936d60d11cef4d8b126cdd781a1828ae9964.tar.bz2
radharc-766d936d60d11cef4d8b126cdd781a1828ae9964.tar.xz
haiku
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
Diffstat (limited to '')
-rw-r--r--src/radharc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/radharc.c b/src/radharc.c
index 968c96f..48538d9 100644
--- a/src/radharc.c
+++ b/src/radharc.c
@@ -15,6 +15,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "settings.h"
+#include "haiku.h"
#include <stdio.h>
#include <stdlib.h>
@@ -29,6 +30,8 @@ char *argv0 = NULL;
/**
* Exit if time the is before year 0 in J2000.
+ *
+ * @param The name of the process, `NULL` if unknown.
*/
#if defined(TIMETRAVELLER)
static void
@@ -36,7 +39,7 @@ check_timetravel(const char *argv0)
{
struct timespec now;
if (clock_gettime(CLOCK_REALTIME, &now))
- perror(argv0 ? argv0 : "radharc"), exit(1);
+ haiku(argv0 ? argv0 : "radharc"), exit(1);
if (now.tv_nsec < (time_t)946728000L)
fprintf(stderr, "We have detected that you are a time-traveller"
"(or your clock is not configured correctly.)"