/[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.81 by sysadm, Tue Nov 4 14:15:49 2025 UTC Revision 1.82 by sysadm, Tue Nov 4 14:30:44 2025 UTC
# Line 1384  int unload_menu(MENU_SET *p_menu_set) Line 1384  int unload_menu(MENU_SET *p_menu_set)
1384    
1385          detach_menu_shm(p_menu_set);          detach_menu_shm(p_menu_set);
1386    
1387          if (shmctl(shmid, IPC_RMID, NULL) == -1)          if (shmid != 0 && shmctl(shmid, IPC_RMID, NULL) == -1)
1388          {          {
1389                  log_error("shmctl(shmid=%d, IPC_RMID) error (%d)\n", shmid, errno);                  log_error("shmctl(shmid=%d, IPC_RMID) error (%d)\n", shmid, errno);
1390                  return -1;                  return -1;


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

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