|
poser
A C framework for POsix SERvices
|
Event arguments for service (pre)startup events. More...
#include <poser/core/service.h>
Public Member Functions | |
| void | PSC_EAStartup_return (PSC_EAStartup *self, int rc) |
| Return a status code from a (pre)startup event. | |
Event arguments for service (pre)startup events.
| void PSC_EAStartup_return | ( | PSC_EAStartup * | self, |
| int | rc | ||
| ) |
Return a status code from a (pre)startup event.
Call this to signal an error condition from the PSC_Service_prestartup() or the PSC_Service_startup() event. A non-zero exit code will cause the service loop to exit directly, returning this code.
| self | the PSC_EAStartup |
| rc | the exit code to return |