tor  master
Data Structures | Functions
util_process.c File Reference

utility functions for launching processes and checking their status. These functions are kept separately from procmon so that they won't require linking against libevent. More...

#include "orconfig.h"
#include "compat.h"
#include "util.h"
#include "torlog.h"
#include "util_process.h"
#include "ht.h"
Include dependency graph for util_process.c:

Data Structures

struct  waitpid_callback_t
 

Functions

void clear_waitpid_callback (waitpid_callback_t *ent)
 
void notify_pending_waitpid_callbacks (void)
 

Detailed Description

utility functions for launching processes and checking their status. These functions are kept separately from procmon so that they won't require linking against libevent.

Function Documentation

◆ clear_waitpid_callback()

void clear_waitpid_callback ( waitpid_callback_t ent)

Cancel a waitpid_callback_t, or clean up after one has triggered. Releases all storage held by ent.

◆ notify_pending_waitpid_callbacks()

void notify_pending_waitpid_callbacks ( void  )

Use waitpid() to wait for all children that have exited, and invoke any callbacks registered for them.