Commit c268d3f0 authored by Adam Wujek's avatar Adam Wujek 💬

userspace/snmpd: fix number of tries in init_shm

By this avoid log entires during normal startup:
snmpd[1138]: wrsPortStatusTable_data_fill: Unable to read PPSI's shmem
Signed-off-by: Adam Wujek's avatarAdam Wujek <adam.wujek@cern.ch>
parent 97236859
......@@ -182,7 +182,7 @@ int shmem_ready_rtud(void)
void init_shm(void){
int i;
for (i = 0; i < 1; i++) {
for (i = 0; i < 10; i++) {
if (shmem_ready_hald()) {
/* shmem opened successfully */
break;
......@@ -190,7 +190,7 @@ void init_shm(void){
/* wait 1 second before another try */
sleep(1);
}
for (i = 0; i < 1; i++) {
for (i = 0; i < 10; i++) {
if (shmem_ready_ppsi()) {
/* shmem opened successfully */
break;
......@@ -198,7 +198,7 @@ void init_shm(void){
/* wait 1 second before another try */
sleep(1);
}
for (i = 0; i < 1; i++) {
for (i = 0; i < 10; i++) {
if (shmem_ready_rtud()) {
/* shmem opened successfully */
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment