Commit f3221e3b authored by Per Cederqvist's avatar Per Cederqvist

(create_status): Use i_fopen and i_fclose instead of fopen and fclose.

parent 93b9b206
/*
* $Id: komrunning.c,v 1.4 2002/09/10 08:48:47 ceder Exp $
* $Id: komrunning.c,v 1.5 2002/10/31 09:31:09 ceder Exp $
* Copyright (C) 1999 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -46,6 +46,7 @@
#include "param.h"
#include "pidfile.h"
#include "linkansi.h"
#include "eintr.h"
static void
usage(const char *arg0)
......@@ -76,7 +77,7 @@ create_status(const char *arg0)
if (user == NULL)
user = "root";
fp = fopen(param.status_file, "w");
fp = i_fopen(param.status_file, "w");
if (fp == NULL)
{
saved_errno = errno;
......@@ -95,7 +96,7 @@ create_status(const char *arg0)
exit(1);
}
if (fclose(fp) != 0)
if (i_fclose(fp) != 0)
{
saved_errno = errno;
fprintf(stderr, "%s: closing ", arg0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment