23 Job control

Function: mbfl_process_enable
Function: mbfl_process_disable

Enable or disable job control, See Job Control.

Read-only Variable: mbfl_PID

The current process ID. This value is saved by MBFL because the value of ‘$$’ is the PID of the current shell or subshell.

Function: mbfl_process_disown ARG

Execute the builtin disown using the given optional arguments.

If the predefined options --test or --show-program are enabled: print a line on the standard error channel describing the operation. If the predefined option --test is enabled: do not execute the builtin. Predefined options.

Function: mbfl_process_wait ARG

Execute the builtin wait using the given optional arguments.

If the predefined options --test or --show-program are enabled: print a line on the standard error channel describing the operation. If the predefined option --test is enabled: do not execute the builtin. Predefined options.

Function: mbfl_process_kill ARG

Execute the builtin kill using the given optional arguments.

When sending signals to a process: we have to remember that multiple signals with the same number may be delivered collapsed into a single signal; so:

mbfl_process_kill -s SIGUSR1 $SOME_PID
mbfl_process_kill -s SIGUSR1 $SOME_PID

may cause a single ‘SIGUSR1’ to be delivered. We also have to remember that ‘$$’ expands into the PID of the current shell or subshell.

If the predefined options --test or --show-program are enabled: print a line on the standard error channel describing the operation. If the predefined option --test is enabled: do not execute the builtin. Predefined options.

Function: mbfl_process_suspend ARG

Execute the builtin suspend using the given optional arguments.

If the predefined options --test or --show-program are enabled: print a line on the standard error channel describing the operation. If the predefined option --test is enabled: do not execute the builtin. Predefined options.

Function: mbfl_process_bg ARG

Execute the builtin bg using the given optional arguments.

If the predefined options --test or --show-program are enabled: print a line on the standard error channel describing the operation. If the predefined option --test is enabled: do not execute the builtin. Predefined options.

Function: mbfl_process_fg ARG

Execute the builtin fg using the given optional arguments.

If the predefined options --test or --show-program are enabled: print a line on the standard error channel describing the operation. If the predefined option --test is enabled: do not execute the builtin. Predefined options.

Function: mbfl_process_sleep ARG

Execute the command sleep using the given optional arguments. mbfl_PROGRAM_SLEEP for details on the file system pathname of the program sleep.


This document describes version 3.0.0-devel.9 of Marcos Bash Functions Library.