Re: g_message function calls
Charles Kerr <[email protected]>
| Newsgroups | gmane.comp.gnome.apps.pan.devel |
|---|---|
| Message-ID | <[email protected]> |
Guilhem Bonnefille wrote: > Hi, > > I found some calls to the g_message function (~6 calls). Is it a > feature or a typo? Why such messages go to stderr and not to the Log > journal? Because they're reporting messages in the socket creation code, which runs in worker threads. using the Log at that point wouldn't be threadsafe. The socket creation code is a special case there -- it's the /only/ part of Pan that uses threads, and it's a very small task. The purpose here is to make a connection in a nonblocking way so that Pan doesn't freeze while connecting. Charles