posix_setrlimit

(PHP 7, PHP 8)

posix_setrlimitSet system resource limits

Beschreibung

posix_setrlimit ( int $resource , int $soft_limit , int $hard_limit ) : bool

posix_setrlimit() sets the soft and hard limits for a given system resource.

Zu jeder Ressource gehören ein weiches und ein hartes Limit. Das weiche Limit ist der Wert, den der Kernel für die entsprechende Ressource geltend macht. Das harte Limit fungiert als Obergrenze für das weiche Limit. Ein unprivilegierter Prozess kann nur sein weiches Limit auf einen Wert im Bereich von 0 bis zum harten Limit setzen und sein hartes Limit unumkehrbar absenken.

Parameter-Liste

resource

The resource limit constant corresponding to the limit that is being set.

soft_limit

The soft limit, in whatever unit the resource limit requires, or POSIX_RLIMIT_INFINITY.

hard_limit

The hard limit, in whatever unit the resource limit requires, or POSIX_RLIMIT_INFINITY.

Rückgabewerte

Gibt bei Erfolg true zurück. Im Fehlerfall wird false zurückgegeben.

Siehe auch

  • man page SETRLIMIT(2)
  • posix_getrlimit() - Liefert Informationen über Systemressourcen-Limits

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top