summaryrefslogtreecommitdiff
path: root/c-sources
diff options
context:
space:
mode:
authorWill Thompson <will@willthompson.co.uk>2012-09-03 10:50:22 -0400
committerWill Thompson <will@willthompson.co.uk>2012-09-03 10:50:22 -0400
commitb5bdd77ff2c8532365806bdfae490b59295fd795 (patch)
tree740a9c9c97c815b36a291162de1d0075cf202e93 /c-sources
parent53070dfb17b60520169a20c2c72b0021144cb93f (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.
Diffstat (limited to 'c-sources')
-rw-r--r--c-sources/pcap-monitor.c2
1 files changed, 1 insertions, 1 deletions
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: ");