Add a destroy notifier to StackStash

2006-07-31  Soren Sandmann <sandmann@redhat.com>

	* stackstash.[ch]: Add a destroy notifier to StackStash

	* collector.c (collector_create_profile): Pass g_free as destroy
	notifier.

	* collector.c (collector_reset): Pass NULL as destroy notifier

	* profile.c (profile_load): Pass g_free here.

	* profile.c (struct Profile): Remove unused "Node" typedef

	* collector.c (resolve_symbols): Free the array here.

	* TODO: various updates.
This commit is contained in:
Soren Sandmann
2006-07-31 04:50:34 +00:00
committed by Søren Sandmann Pedersen
parent 5efd06051c
commit d43cdf3c14
8 changed files with 92 additions and 21 deletions

View File

@ -85,6 +85,12 @@ signal_handler (int signo,
{
/* FIXME: I suppose we should handle short
* and non-successful writes ...
*
* And also, there is a deadlock if so many signals arrive that
* write() blocks. Then we will be stuck right here, and the
* main loop will never run. Kinda hard to fix without dropping
* signals ...
*
*/
write (write_end, &signo, sizeof (int));
}
@ -190,7 +196,7 @@ signal_set_handler (int signo,
return FALSE;
}
return TRUE;
}