Mercurial > dovecot > core-2.2
view src/lib/ioloop-notify-none.c @ 19604:c996bc091c6b
master: Do not close stdout if going foreground
This lets one to use /dev/stdout for logging. Mainly
useful for testing purposes where we can generate
log output to stdout and use tee to write it to a
file for later examination.
author | Aki Tuomi <aki.tuomi@dovecot.fi> |
---|---|
date | Mon, 18 Jan 2016 15:50:23 +0200 |
parents | 0f22db71df7a |
children | 1bd9c2258fd9 |
line wrap: on
line source
/* Copyright (c) 2003-2016 Dovecot authors, see the included COPYING file */ #include "lib.h" #include "ioloop-private.h" #ifdef IOLOOP_NOTIFY_NONE #undef io_add_notify enum io_notify_result io_add_notify(const char *path ATTR_UNUSED, unsigned int source_linenum ATTR_UNUSED, io_callback_t *callback ATTR_UNUSED, void *context ATTR_UNUSED, struct io **io_r) { *io_r = NULL; return IO_NOTIFY_NOSUPPORT; } void io_loop_notify_remove(struct io *io ATTR_UNUSED) { } void io_loop_notify_handler_deinit(struct ioloop *ioloop ATTR_UNUSED) { } int io_loop_extract_notify_fd(struct ioloop *ioloop ATTR_UNUSED) { return -1; } #endif