Changeset a269782bb0c65ccb6f6c79bf6ff0541077288f2d

Show
Ignore:
Timestamp:
07/28/10 19:17:26 (4 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1280344646 +0000
git-parent:

[e932bb8dcbb4a14c3e548a2408045fe9ea296a1b]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1280344646 +0000
Message:

never abort a child before the heart starts... only after the heart has stopped.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/utils/noit_watchdog.c

    re932bb8 ra269782  
    6868  return (unsigned long)diff.tv_sec; 
    6969} 
     70static void it_ticks_zero() { 
     71  (*lifeline) = 0; 
     72} 
    7073static void it_ticks() { 
    7174  (*lifeline)++; 
     
    8285    return -1; 
    8386  } 
     87  (*lifeline) = 0; 
    8488  return 0; 
    8589} 
     
    98102    if(child_pid == 0) { 
    99103      /* This sets up things so we start alive */ 
    100       it_ticks(); 
     104      it_ticks_zero(); 
    101105      /* run the program */ 
    102106      exit(func());