Skip to content

Commit

Permalink
httpd: added debugging for shget failing in get_cfg_clientlist
Browse files Browse the repository at this point in the history
  • Loading branch information
zaloisio committed Nov 16, 2021
1 parent 49f4242 commit dde1a34
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion release/src/router/httpd/web.c
Original file line number Diff line number Diff line change
Expand Up @@ -27875,7 +27875,8 @@ ej_get_cfg_clientlist(int eid, webs_t wp, int argc, char **argv){
lock = file_lock(CFG_FILE_LOCK);
shm_client_tbl_id = shmget((key_t)KEY_SHM_CFG, sizeof(CM_CLIENT_TABLE), 0666|IPC_CREAT);
if (shm_client_tbl_id == -1){
fprintf(stderr, "shmget failed\n");
int error = errno;
fprintf(stderr, "shmget failed (%d)\n", error);
file_unlock(lock);
return 0;
}
Expand Down

0 comments on commit dde1a34

Please sign in to comment.