Skip to content

Commit

Permalink
[core] Print critical warning if process tree is broken
Browse files Browse the repository at this point in the history
Log critical warning each time rebuild_tree() is invoked, as such
errors should be closely examined. Maybe I have missed something, but
couldn't found out how this may happen.
  • Loading branch information
gajdusek committed Mar 18, 2014
1 parent 07ed670 commit a27ef04
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1283,6 +1283,9 @@ static void rebuild_tree() {
gpointer key, value;
u_proc *proc, *parent;

// could this ever happen?
g_critical("Process tree is desynchronized, rebuilding.");

// clear root node
g_node_destroy(processes_tree);
processes_tree = g_node_new(NULL);
Expand Down

0 comments on commit a27ef04

Please sign in to comment.