NAME

cat_fork - create a new process

SYNOPSIS

#include <cat/cat.h>

#include <cat/catutil.h>

pid_t cat_fork(void);

DESCRIPTION

cat_fork is a wrapper function for the standard fork function on UNIX platforms. In addition to the normal actions taken by fork, this function also allows the Agent SDK to free some resources, close open files, and carry out other cleanup operations.

NOTES

Do not fork inside an Agent unless followed by exec. Explicit forking inside the Agent SDK may cause problems that are hard to diagnose.

cat_fork exists only on UNIX platforms.

SEE ALSO

cat, fork