]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/stored/stored.c
update version
[bacula/bacula] / bacula / src / stored / stored.c
index 71f6f9d2a7ea59e761b07b038aaf3394dc07049d..8f19c7834fbd19d698e4d34bf4efd9ac7b368365 100644 (file)
@@ -616,8 +616,8 @@ void terminate_stored(int sig)
          fd = jcr->file_bsock;
          if (fd) {
             fd->set_timed_out();
+            jcr->my_thread_send_signal(TIMEOUT_SIGNAL);
             Dmsg1(100, "term_stored killing JobId=%d\n", jcr->JobId);
-            pthread_kill(jcr->my_thread_id, TIMEOUT_SIGNAL);
             /* ***FIXME*** wiffle through all dcrs */
             if (jcr->dcr && jcr->dcr->dev && jcr->dcr->dev->blocked()) {
                pthread_cond_broadcast(&jcr->dcr->dev->wait_next_vol);
@@ -662,7 +662,7 @@ void terminate_stored(int sig)
       config->free_resources();
       free(config);
       config = NULL;
-  }
+   }
 
    if (debug_level > 10) {
       print_memory_pool_stats();