- I got a crash at dir->close() while the FD was traced with GDB and
waiting for too long on the GDB prompt
- this problem should never happens on production system when not using GDB
- Anyway using GDB should not crash the FD
}
dir->close();
jcr->hb_status = -1; // Mark as stopped
+ free_jcr(jcr);
return NULL;
}
void start_dir_heartbeat(JCR *jcr)
{
if (!no_signals && (me->heartbeat_interval > 0)) {
+ jcr->inc_use_count();
jcr->dir_bsock->set_locking();
pthread_create(&jcr->heartbeat_id, NULL, dir_heartbeat_thread, (void *)jcr);
}