int main(int argc, char *argv[]) { HAMClient ham(basename(argv[0]), WATCHDOG_CHAN); pthread_create(0, 0, heartbeat, &ham); ham.RegisterDeath(); getchar(); } /home/root>ha_test 479.555616763s: Ham: Attach Self Entity Request: ha_test 479.572614162s: Ham: Attached Self Entity: ha_test 479.590611408s: Ham: Condition Add Request: ha_test/conditiondeath 479.607608807s: Ham: Condition Added: ha_test/conditiondeath 479.622606512s: Ham: Action Add Request: ha_test/conditiondeath/notifypulsedeath 479.636604370s: Ham: Action Added: ha_test/conditiondeath/notifypulsedeath 481.341343505s: Ham: Detach Other Request: ha_test 481.363340139s: Ham: Deleting ha_test /home/root>ha_test 483.712980589s: Ham: Attach Self Entity Request: ha_test 483.729977988s: Ham: Attached Self Entity: ha_test 483.745975540s: Ham: Condition Add Request: ha_test/conditiondeath 483.761973092s: Ham: Condition Added: ha_test/conditiondeath 483.774971103s: Ham: Action Add Request: ha_test/conditiondeath/notifypulsedeath 483.788968961s: Ham: Action Added: ha_test/conditiondeath/notifypulsedeath 486.313582636s: Ham: Entity "ha_test" with pid: 344082 died 486.328580341s: Ham: Notify pulse code/value:3/0 to nd/pid/chid: 0/290833/1 486.344577893s: Ham: Deleting ha_test