--- lbbs/src/menu.c 2025/10/29 05:30:05 1.77 +++ lbbs/src/menu.c 2025/11/04 13:49:51 1.80 @@ -1,18 +1,10 @@ -/*************************************************************************** - menu.c - description - ------------------- - Copyright : (C) 2004-2025 by Leaflet - Email : leaflet@leafok.com - ***************************************************************************/ - -/*************************************************************************** - * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 3 of the License, or * - * (at your option) any later version. * - * * - ***************************************************************************/ +/* SPDX-License-Identifier: GPL-3.0-or-later */ +/* + * menu + * - configurable user interactive menu feature + * + * Copyright (C) 2004-2025 by Leaflet + */ #include "bbs.h" #include "bbs_cmd.h" @@ -38,7 +30,7 @@ #define MENU_SET_RESERVED_LENGTH (sizeof(int16_t) * 4) -#define MENU_SHMGET_RETRY_LIMIT 3 +#define MENU_SHMGET_RETRY_LIMIT 10 MENU_SET bbs_menu; MENU_SET top10_menu; @@ -118,10 +110,8 @@ int load_menu(MENU_SET *p_menu_set, cons conf_file, size, errno, retry_cnt + 1); break; } -#ifdef _DEBUG log_error("shmget(conf_file=%s, proj_id=%d, key=0x%x, size=%d) error (%d), retry ...\n", conf_file, proj_id + retry_cnt, key, size, errno); -#endif retry_cnt++; } } while (p_menu_set->shmid == -1);