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

Diff of /lbbs/src/user_list.c

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

Revision 1.42 by sysadm, Thu Nov 20 09:02:46 2025 UTC Revision 1.43 by sysadm, Thu Nov 20 10:20:51 2025 UTC
# Line 54  struct user_list_pool_t Line 54  struct user_list_pool_t
54          size_t shm_size;          size_t shm_size;
55  #ifndef HAVE_SYSTEM_V  #ifndef HAVE_SYSTEM_V
56          sem_t sem;          sem_t sem;
57          int read_lock_count;          uint16_t read_lock_count;
58          int write_lock_count;          uint16_t write_lock_count;
59  #else  #else
60          int semid;          int semid;
61  #endif  #endif
# Line 829  int user_list_rd_unlock(void) Line 829  int user_list_rd_unlock(void)
829          {          {
830                  if (errno != ETIMEDOUT && errno != EAGAIN && errno != EINTR)                  if (errno != ETIMEDOUT && errno != EAGAIN && errno != EINTR)
831                  {                  {
832                          log_error("sem_timedwait() error %d\n", errno);                          log_error("sem_wait() error %d\n", errno);
833                  }                  }
834                  return -1;                  return -1;
835          }          }
# Line 881  int user_list_rw_unlock(void) Line 881  int user_list_rw_unlock(void)
881          {          {
882                  if (errno != ETIMEDOUT && errno != EAGAIN && errno != EINTR)                  if (errno != ETIMEDOUT && errno != EAGAIN && errno != EINTR)
883                  {                  {
884                          log_error("sem_timedwait() error %d\n", errno);                          log_error("sem_wait() error %d\n", errno);
885                  }                  }
886                  return -1;                  return -1;
887          }          }


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

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