tor  0.4.0.1-alpha
Functions
pidfile.c File Reference
#include "orconfig.h"
#include "lib/process/pidfile.h"
#include "lib/log/log.h"
#include <errno.h>
#include <stdio.h>
#include <string.h>

Go to the source code of this file.

Functions

int write_pidfile (const char *filename)
 

Detailed Description

Record this process's PID to disk.

Definition in file pidfile.c.

Function Documentation

◆ write_pidfile()

int write_pidfile ( const char *  filename)

Write the current process ID, followed by NL, into filename. Return 0 on success, -1 on failure.

Definition at line 31 of file pidfile.c.