Commit 0b7f4130 authored by Per Cederqvist's avatar Per Cederqvist

(main): Use i_fopen instead of fopen. Don't forget to close the

	status file.
parent bd198acb
/*
* $Id: updateLysKOM.c,v 1.17 2002/09/10 08:48:47 ceder Exp $
* $Id: updateLysKOM.c,v 1.18 2002/10/31 09:31:46 ceder Exp $
* Copyright (C) 1994-1995, 1998-1999, 2001 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -60,6 +60,7 @@
#include "server-config.h"
#include "param.h"
#include "linkansi.h"
#include "eintr.h"
static void
usage(const char *arg0)
......@@ -239,10 +240,11 @@ main (int argc,
exit(1);
}
fp = fopen(param.status_file, "r");
fp = i_fopen(param.status_file, "r");
if (fp != NULL)
{
checkstatus(fp, pid, argv[0]);
i_fclose(fp);
}
else
{
......
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