MPD: unix/Daemon.hxx File Reference

MPD 0.20.15

Functions
Daemon.hxx File Reference

Go to the source code of this file.

## Functions
void | daemonize_init (const char *user, const char *group, AllocatedPath &&pidfile)
void | daemonize_finish ()
void | daemonize_kill ()
| Kill the MPD which is currently running, pid determined from the pid file. More...
void | daemonize_close_stdin ()
| Close stdin (fd 0) and re-open it as /dev/null. More...
void | daemonize_set_user ()
| Change to the configured Unix user. More...
void | daemonize_begin (bool detach)
void | daemonize_commit ()

## Function Documentation

## ◆ daemonize_begin()

void daemonize_begin | ( | bool | detach | ) |

## ◆ daemonize_close_stdin()

void daemonize_close_stdin | ( |  | ) |

Close stdin (fd 0) and re-open it as /dev/null.

## ◆ daemonize_commit()

void daemonize_commit | ( |  | ) |

## ◆ daemonize_finish()

void daemonize_finish | ( |  | ) |

## ◆ daemonize_init()

void daemonize_init | ( | const char * | user,
|  | const char * | group,
|  | AllocatedPath && | pidfile
| ) |  |

## ◆ daemonize_kill()

void daemonize_kill | ( |  | ) |

Kill the MPD which is currently running, pid determined from the pid file.

## ◆ daemonize_set_user()

void daemonize_set_user | ( |  | ) |

Change to the configured Unix user.