When an error occurs to incrase the node monitor limit, reset the current
value and don't keep it at the value we wanted it increased to. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35112 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1463,8 +1463,10 @@ TTracker::NeedMoreNodeMonitors()
|
|||||||
struct rlimit rl;
|
struct rlimit rl;
|
||||||
rl.rlim_cur = fNodeMonitorCount;
|
rl.rlim_cur = fNodeMonitorCount;
|
||||||
rl.rlim_max = RLIM_SAVED_MAX;
|
rl.rlim_max = RLIM_SAVED_MAX;
|
||||||
if (setrlimit(RLIMIT_NOVMON, &rl) < 0)
|
if (setrlimit(RLIMIT_NOVMON, &rl) < 0) {
|
||||||
|
fNodeMonitorCount -= kNodeMonitorBumpValue;
|
||||||
return errno;
|
return errno;
|
||||||
|
}
|
||||||
return B_OK;
|
return B_OK;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user