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 /c-sources | |
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.
Diffstat (limited to 'c-sources')
-rw-r--r-- | c-sources/pcap-monitor.c | 2 |
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: "); |