Re: [Tracker] Use of fork() in tracker-extract-pdf
- From: Jens Georg <mail jensge org>
- To: tracker-list gnome org
- Subject: Re: [Tracker] Use of fork() in tracker-extract-pdf
- Date: Sat, 17 Aug 2013 07:53:22 +0200
[ Wonders of unix signals ]
Seriously? Removing the debug statement is fixing the issue for you?
yes, it fixes one issue and since adding the fix to my code I haven't run into any other issue yet.
This one is definitely a bug, you're not supposed to use non async-signal-safe stuff in a signal handler.
As g_debug() calls malloc(), which is not async-signal-safe, we MUST remove the log statement from the
signal handler.
Shouldn't this be solvable by using g_unix_signal_add* if you want to
keep the debug messages? Though I have a faint memory of only certain
signals being valid to use with this, but can't find that currently.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]