posix_setrlimit

(PHP 7, PHP 8)

posix_setrlimitSet system resource limits

Descrição

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

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

Cada recurso está associado a um soft limit e um hard limit. O soft limit é o limite que o kernel restringe do recurso. O hard limit funciona com um teto máximo para o limite soft. Qualquer processo sem privilégios só pode pode configurar o soft limit entre zero e o hard limit, e irreversivelmente abaixo que o hard limit.

Parâmetros

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.

Valor Retornado

Retorna true em caso de sucesso ou false em caso de falha.

Veja Também

add a note add a note

User Contributed Notes

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