Tor  0.4.7.0-alpha-dev
Functions
pidfile.h File Reference

Header for pidfile.c. More...

Go to the source code of this file.

Functions

int write_pidfile (const char *filename)
 

Detailed Description

Header for pidfile.c.

Definition in file pidfile.h.

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.