From 308b3f2337f100b5d27fa2af50bf929caff4a7d4 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 24 Sep 2009 21:40:04 +0200 Subject: listen: handle fatal errors with GError Don't call g_error(), which will abort the process and dump core. --- src/listen.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/listen.h') diff --git a/src/listen.h b/src/listen.h index 63253fc53..9f55edb88 100644 --- a/src/listen.h +++ b/src/listen.h @@ -20,9 +20,14 @@ #ifndef MPD_LISTEN_H #define MPD_LISTEN_H +#include + +#include + extern int listen_port; -void listen_global_init(void); +bool +listen_global_init(GError **error_r); void listen_global_finish(void); -- cgit v1.2.3