pidfile(3abz)

pidfile3abz

Create a file containing the process id of the current process.

Usage

#include <abz/pidfile.h>

int pidfile(const char *filename);

Libraries

Abz Library (-labz), Debug Library (-ldebug)

Overview

The pidfile() function creates a file containing the process id of the current process.

Return value

The pidfile() function returns 0 if successful, -1 if not.

Check errno to see what error occurred.

Notes

None of the libabz routines are thread-safe. I'm not planning to change this either! For more information, please see http://threading.2038bug.com/

Author

Written by Abraham vd Merwe <[email protected]>

From libabz0-dev 0.5.1 in Debian 3.1 (Sarge). Parsed by carta from the page's man source.