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

Diff of /lbbs/src/menu.c

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

Revision 1.77 by sysadm, Wed Oct 29 05:30:05 2025 UTC Revision 1.79 by sysadm, Sun Nov 2 08:14:48 2025 UTC
# Line 38  Line 38 
38    
39  #define MENU_SET_RESERVED_LENGTH (sizeof(int16_t) * 4)  #define MENU_SET_RESERVED_LENGTH (sizeof(int16_t) * 4)
40    
41  #define MENU_SHMGET_RETRY_LIMIT 3  #define MENU_SHMGET_RETRY_LIMIT 10
42    
43  MENU_SET bbs_menu;  MENU_SET bbs_menu;
44  MENU_SET top10_menu;  MENU_SET top10_menu;
# Line 118  int load_menu(MENU_SET *p_menu_set, cons Line 118  int load_menu(MENU_SET *p_menu_set, cons
118                                                    conf_file, size, errno, retry_cnt + 1);                                                    conf_file, size, errno, retry_cnt + 1);
119                                  break;                                  break;
120                          }                          }
 #ifdef _DEBUG  
121                          log_error("shmget(conf_file=%s, proj_id=%d, key=0x%x, size=%d) error (%d), retry ...\n",                          log_error("shmget(conf_file=%s, proj_id=%d, key=0x%x, size=%d) error (%d), retry ...\n",
122                                            conf_file, proj_id + retry_cnt, key, size, errno);                                            conf_file, proj_id + retry_cnt, key, size, errno);
 #endif                                      
123                          retry_cnt++;                          retry_cnt++;
124                  }                  }
125          } while (p_menu_set->shmid == -1);          } while (p_menu_set->shmid == -1);


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

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