* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: os.c,v 1.5.2.2 2002/08/05 06:57:03 marka Exp $ */
+/* $Id: os.c,v 1.5.2.3 2002/08/08 19:15:19 mayer Exp $ */
#include <config.h>
#include <stdarg.h>
#include <isc/print.h>
#include <isc/result.h>
#include <isc/string.h>
+//#include <isc/ntfile.h>
#include <isc/ntpaths.h>
#include <named/main.h>
if (fprintf(lockfile, "%ld\n", (long)pid) < 0) {
(*report)("fprintf() to pid file '%s' failed", filename);
- (void)fclose(fd);
+ (void)fclose(lockfile);
cleanup_pidfile();
return;
}
if (fflush(lockfile) == EOF) {
(*report)("fflush() to pid file '%s' failed", filename);
- (void)fclose(fd);
+ (void)fclose(lockfile);
cleanup_pidfile();
return;
}