diff options
author | Ron Yorston <rmy@pobox.com> | 2021-09-26 08:33:36 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2021-09-26 08:33:36 +0100 |
commit | 010abea6f548a367d0d89998aa6c38a45d756c0d (patch) | |
tree | 6d86f10e7a7753478c0600cb3659e23d5fe89b43 /docs | |
parent | bcb1d0c76d6e665133d1f878590af2006b31de6e (diff) | |
download | busybox-w32-010abea6f548a367d0d89998aa6c38a45d756c0d.tar.gz busybox-w32-010abea6f548a367d0d89998aa6c38a45d756c0d.tar.bz2 busybox-w32-010abea6f548a367d0d89998aa6c38a45d756c0d.zip |
ash: additional support for background jobs
The rationale for the jobs builtin in POSIX notes:
The jobs utility is not dependent on the job control option,
as are the seemingly related bg and fg utilities because jobs
is useful for examining background jobs, regardless of the
condition of job control. When the user has invoked a set +m
command and job control has been turned off, jobs can still be
used to examine the background jobs associated with that current
session. Similarly, kill can then be used to kill background
jobs with kill %<background job number>.
Although ash in busybox-w32 doesn't support job control it can
handle background jobs.
Allow the ASH_JOB_CONTROL setting to enable certain features:
- the jobs builtin;
- killing of jobs by job id in the kill builtin;
- monitoring of changes to jobs.
Since process groups aren't supported it's necessary to kill the
processes constituting a background job individually. When doing
this we ask kill(2) to kill all children too.
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions