rpm
5.4.14
|
Go to the source code of this file.
Typedefs | |
typedef struct rpmsig_s * | rpmsig |
typedef struct rpmsqElem * | rpmsq |
typedef void(* | rpmsqAction_t )(int signum, void *info, void *context) |
Default signal handler prototype. More... | |
Functions | |
int | rpmsqInsert (void *elem, void *prev) |
Insert node into from queue. More... | |
int | rpmsqRemove (void *elem) |
Remove node from queue. More... | |
void | rpmsqAction (int signum, void *info, void *context) |
Default signal handler. More... | |
int | rpmsqEnable (int signum, rpmsqAction_t handler) |
Enable or disable a signal handler. More... | |
pid_t | rpmsqFork (rpmsq sq) |
Fork a child process. More... | |
pid_t | rpmsqWait (rpmsq sq) |
Wait for child process to be reaped. More... | |
void * | rpmsqThread (void *(*start)(void *arg), void *arg) |
Call a function in a thread. More... | |
int | rpmsqJoin (void *thread) |
Wait for thread to terminate. More... | |
int | rpmsqThreadEqual (void *thread) |
Compare thread with current thread. More... | |
int | rpmsqExecve (const char **argv) |
Execute a command, returning its status. More... | |
Variables | |
int | _rpmsq_debug |
rpmsq | rpmsqQueue |
sigset_t | rpmsqCaught |
int rpmsqEnable | ( | int | signum, |
rpmsqAction_t | handler | ||
) |
Enable or disable a signal handler.
signum | signal to enable (or disable if negative) |
handler | sa_sigaction handler (or NULL to use rpmsqHandler()) |
Definition at line 439 of file rpmsq.c.
References ADD_REF, DO_LOCK, DO_UNLOCK, int, ME, NULL, ret, rpmsigTbl, rpmsqAction(), rpmsig_s::signum, SUB_REF, void, and xx.
Referenced by if(), rpmdbClose(), rpmdbOpenDatabase(), rpmsqFork(), and rpmsqWaitUnregister().
int rpmsqExecve | ( | const char ** | argv | ) |
Execute a command, returning its status.
pid_t rpmsqFork | ( | rpmsq | sq | ) |
Fork a child process.
sq | scriptlet queue element |
Definition at line 495 of file rpmsq.c.
References fprintf(), int, ME, NULL, out, pid, rpmsqEnable(), rpmsqInsert(), and xx.
Referenced by runScript().
Wait for thread to terminate.
thread | thread |
Definition at line 671 of file rpmsq.c.
Referenced by fsmNext(), iosmNext(), and rpmpsmNext().
Call a function in a thread.
start | function |
arg | function argument |
Definition at line 656 of file rpmsq.c.
References NULL, ret, and void.
Referenced by fsmNext(), iosmNext(), and rpmpsmNext().
pid_t rpmsqWait | ( | rpmsq | sq | ) |