From 707112677065dd59f638764bb9dbd64d200b8a85 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 15 Jan 2013 18:18:02 +0100 Subject: InotifySource: use the SocketMonitor class --- test/run_inotify.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'test') diff --git a/test/run_inotify.cxx b/test/run_inotify.cxx index 92790a3a..29fcf70a 100644 --- a/test/run_inotify.cxx +++ b/test/run_inotify.cxx @@ -61,7 +61,10 @@ int main(int argc, char **argv) path = argv[1]; - InotifySource *source = InotifySource::Create(my_inotify_callback, + event_loop = new EventLoop(EventLoop::Default()); + + InotifySource *source = InotifySource::Create(*event_loop, + my_inotify_callback, nullptr, &error); if (source == NULL) { g_warning("%s", error->message); @@ -77,8 +80,6 @@ int main(int argc, char **argv) return 2; } - event_loop = new EventLoop(EventLoop::Default()); - struct sigaction sa; sa.sa_flags = 0; sigemptyset(&sa.sa_mask); -- cgit v1.2.3