MySQL 8.0.39
Source Code Documentation
|
Functions | |
bool | is_daemon () |
Prediacate to test if we're currently executing in the daemon process. More... | |
int | mysqld_daemonize () |
Daemonize mysqld. More... | |
void | signal_parent (int pipe_write_fd, char status) |
Signal parent to exit. More... | |
bool mysqld::runtime::is_daemon | ( | ) |
Prediacate to test if we're currently executing in the daemon process.
true | if this is the daemon |
false | otherwise |
int mysqld::runtime::mysqld_daemonize | ( | ) |
Daemonize mysqld.
This function does sysv style of daemonization of mysqld.
fd | In daemon; file descriptor for the write end of the status pipe. |
-1 | In parent, if successful. |
-2 | In parent, in case of errors. |
void mysqld::runtime::signal_parent | ( | int | pipe_write_fd, |
char | status | ||
) |
Signal parent to exit.
pipe_write_fd | File Descriptor of write end of pipe. |
status | status of the initialization done by grand child. 1 means initialization complete and the server is ready to accept client connections. 0 means initialization aborted due to some failure. |