diff options
author | Will Thompson <will@willthompson.co.uk> | 2012-09-03 10:50:22 -0400 |
---|---|---|
committer | Will Thompson <will@willthompson.co.uk> | 2012-09-03 10:50:22 -0400 |
commit | b5bdd77ff2c8532365806bdfae490b59295fd795 (patch) | |
tree | 740a9c9c97c815b36a291162de1d0075cf202e93 | |
parent | 53070dfb17b60520169a20c2c72b0021144cb93f (diff) |
Use g_thread_try_new rather than g_thread_create
The latter is deprecated. This seems like an extremely worthwhile change
to have to make.
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | c-sources/pcap-monitor.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -1,6 +1,6 @@ CFLAGS = -g -O2 -Wall -Wunused DBUS_FLAGS = $(shell pkg-config --cflags --libs dbus-1) -GIO_FLAGS := $(shell pkg-config --cflags --libs glib-2.0 gio-2.0 gio-unix-2.0) +GIO_FLAGS := $(shell pkg-config --cflags --libs 'glib-2.0 >= 2.32' gio-2.0 gio-unix-2.0) PCAP_FLAGS := $(shell pcap-config --cflags pcap-config --libs) DESTDIR = PREFIX = /usr/local diff --git a/c-sources/pcap-monitor.c b/c-sources/pcap-monitor.c index c642813..cfcda5a 100644 --- a/c-sources/pcap-monitor.c +++ b/c-sources/pcap-monitor.c @@ -443,7 +443,7 @@ initable_init ( return FALSE; } - priv->thread = g_thread_create (log_thread, &priv->td, TRUE, error); + priv->thread = g_thread_try_new ("monitor", log_thread, &priv->td, error); if (priv->thread == NULL) { g_prefix_error (error, "Couldn't spawn logging thread: "); |