docs: Clarify that disowned jobs won't fire on-process/job-exit

Fixes #10381
This commit is contained in:
Fabian Boehm
2024-03-19 16:39:37 +01:00
parent a551432f5c
commit c759a98b37
2 changed files with 3 additions and 0 deletions

View File

@@ -14,6 +14,7 @@ Description
-----------
``disown`` removes the specified :ref:`job <syntax-job-control>` from the list of jobs. The job itself continues to exist, but fish does not keep track of it any longer.
This will make fish lose all knowledge of the job, so functions defined with ``--on-process-exit`` or ``--on-job-exit`` will no longer fire.
Jobs in the list of jobs are sent a hang-up signal when fish terminates, which usually causes the job to terminate; ``disown`` allows these processes to continue regardless.