X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/e7eb3a2744aa45179daea235800753d3d1955338..7aca3c62ca1ef2374a63c6830c74d36c3ae8c969:/lib/logfd.c diff --git a/lib/logfd.c b/lib/logfd.c index 7413379..015321a 100644 --- a/lib/logfd.c +++ b/lib/logfd.c @@ -15,6 +15,9 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ +/** @file lib/logfd.c + * @brief Redirect subprocess stderr to DisOrder server's log + */ #include "common.h" @@ -26,7 +29,7 @@ #include "event.h" #include "log.h" -/* called when bytes are available and at eof */ +/** @brief Called when a log FD is readable */ static int logfd_readable(ev_source attribute((unused)) *ev, ev_reader *reader, void *ptr, @@ -51,7 +54,7 @@ static int logfd_readable(ev_source attribute((unused)) *ev, return 0; } -/* called when a read error occurs */ +/** @brief Called when a log FD errors */ static int logfd_error(ev_source attribute((unused)) *ev, int errno_value, void *u) {