PRCTL(1) | General Commands Manual | PRCTL(1) |
prctl - Process operations
prctl [-v] [-h|--help] [--version] <-q|<options....>> [command]
where <options> are:
--unaligned=[silent|signal|always-signal|default]
--fpemu=[silent|signal|default]
--mcekill=[early|late|default]
prctl allows you to query or control certain process behavior. Supported options are:
Unaligned memory access: When a process performs an unaligned memory access, by default the kernel would emulate the unaligned access correctly and log the unaligned access in syslog. This behavior can be changed so the kernel could either emulate the unaligned access correctly without logging an error ("silent") or send SIGBUS to the process ("signal" and "always-signal"). "always-signal" is available on ia64 only.
Floating point assistance faults: when a process encounters a floating point assist fault, kernel would invoke floating point emulator and log the floating point assist fault. This behavior can be changed so the kernel could either emulate floating point operation without logging an error ("silent") or send SIGFPE to the offending process ("signal").
Machine check memory corruption kill policy: If a hardware memeory corruption is detected inside a thread's address space, mmemory corruption kill policy determines whether the thread received SIGBUS as soon as corruption is detected ("early"), when it accesses corrupted memory ("late"), or use system wide default.
prctl can optionally be followed by a command. If a command is specified, prctl will exec the command with the processor behavior set to as specified by the options. If a command is not specified, prctl will fork a new shell unless the command only queried the current settings. The shell started by prctl will be as defined by the environment variable SHELL. If environment variable SHELL is not defined, shell in the password entry for the user will be started. If a shell is not found in the password entry, bash will be started.
prctl works on 2.4.0 and above kernels only.
--fpemu= option is specific to IPF (Itanium Processor Family, previously known as IA-64) and is supported on kernels 2.4.11 and above. Other architectures and kernels may return "Invalid argument" error.
Khalid Aziz <khalid.aziz@oracle.com>
This software is made available under the GNU General Public License (GPL) Version 2. This software comes with NO WARRANTY.
Process operations |