/[LeafOK_CVS]/lbbs/src/file_loader.c
ViewVC logotype

Diff of /lbbs/src/file_loader.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.3 by sysadm, Sat May 17 05:54:42 2025 UTC Revision 1.5 by sysadm, Sat May 17 15:39:51 2025 UTC
# Line 53  int file_loader_init() Line 53  int file_loader_init()
53    
54  static void trie_file_dict_cleanup_cb(const char *filename, int64_t shmid)  static void trie_file_dict_cleanup_cb(const char *filename, int64_t shmid)
55  {  {
         log_std("Cleanup: %s %ld\n", filename, shmid);  
56          if (shmctl((int)shmid, IPC_RMID, NULL) == -1)          if (shmctl((int)shmid, IPC_RMID, NULL) == -1)
57          {          {
58                  log_error("shmctl(shmid=%d, IPC_RMID) error (%d)\n", (int)shmid, errno);                  log_error("shmctl(shmid=%d, IPC_RMID) error (%d)\n", (int)shmid, errno);
# Line 69  void file_loader_cleanup(void) Line 68  void file_loader_cleanup(void)
68    
69          trie_dict_traverse(p_trie_file_dict, trie_file_dict_cleanup_cb);          trie_dict_traverse(p_trie_file_dict, trie_file_dict_cleanup_cb);
70          trie_dict_destroy(p_trie_file_dict);          trie_dict_destroy(p_trie_file_dict);
         p_trie_file_dict = NULL;  
71  }  }
72    
73  int load_file_shm(const char *filename)  int load_file_shm(const char *filename)


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1