Prelude API Reference Manual | |||
---|---|---|---|
<<< Previous Page | Home | Up | Next Page >>> |
void rwrite_init (int _fd, pid_t _ppid); void rwrite_exit (void); int rwrite_write (alert_t *alert, int backup_on_error); |
void rwrite_exit (void); |
Uninitialize the rwrite module. Further call to the rwrite_write() function will result the data being backuped.
int rwrite_write (alert_t *alert, int backup_on_error); |
This function try to write a report to the file descriptor passed to the rwrite_init() function.
In case of error, the process specified in the rwrite_init() call, is notified by a SIGPIPE, telling it that the connection with the Report Server was eventually closed.
In case rwrite_exit() was called or if an error occur, and if the backup_on_error flag is set to TRUE, the report is backuped.