src/stored/dircmd.c
static bool die_cmd(JCR *jcr)
{
#ifdef DEVELOPER
   JCR *djcr = NULL;
   int a;
   BSOCK *dir = jcr->dir_bsock;
   pthread_mutex_t m=PTHREAD_MUTEX_INITIALIZER;

   if (strstr(dir->msg, "deadlock")) {
      Pmsg0(000, "I have been requested to deadlock ...\n");
      P(m);
      P(m);
   }

   Pmsg1(000, "I have been requested to die ... (%s)\n", dir->msg);
   a = djcr->JobId;   /* ref NULL pointer */
   djcr->JobId = a;
#endif
   return 0;
}
/*
 * Force SD to die, and hopefully dump itself.  Turned on only
 *  in development version.
 */
Force SD to die, and hopefully dump itself.  Turned on only
in development version.
Force SD to die and hopefully dump itself . Turned on only in development version .
static bool die_cmd(JCR *jcr)
{
#ifdef DEVELOPER
   JCR *djcr = NULL;
   int a;
   BSOCK *dir = jcr->dir_bsock;
   pthread_mutex_t m=PTHREAD_MUTEX_INITIALIZER;
   if (strstr(dir->msg, "deadlock")) {
      Pmsg0(000, "I have been requested to deadlock ...\n");
      P(m);
      P(m);
   }
   Pmsg1(000, "I have been requested to die ... (%s)\n", dir->msg);
   a = djcr->JobId;   
   djcr->JobId = a;
#endif
   return 0;
}
static bool die_cmd ( JCR * jcr ) { #ifdef DEVELOPER JCR * djcr = NULL ; int a ; BSOCK * dir = jcr -> dir_bsock ; pthread_mutex_t m = PTHREAD_MUTEX_INITIALIZER ; if ( strstr ( dir -> msg , " " ) ) { Pmsg0 ( 000 , " \n " ) ; P ( m ) ; P ( m ) ; } Pmsg1 ( 000 , " \n " , dir -> msg ) ; a = djcr -> JobId ; djcr -> JobId = a ; #endif return 0 ; }
Force SD to die, and hopefully dump itself.
Force SD to die and hopefully dump itself .
/* ref NULL pointer */