O que o kill
embutido realmente faz nessas circunstâncias não está documentado no manual do shell do Bourne Again, mas está documentado nos manuais de shell Z e Korn:
- Concha Korn:
If the signal being sent is
TERM
(terminate) orHUP
(hangup), then the job or process will be sent aCONT
(continue) signal if it is stopped. - Z shell:
If the signal being sent is not
KILL
orCONT
, then the job will be sent aCONT
signal if it is stopped.
O manual da shell do Bourne Again deve, da mesma forma, ler algo como:
If the signal being sent isTERM
orHUP
and a targetted process is part of a job, then the job will be sent aCONT
signal if it is stopped or job control is not available in the current terminal.
Porque é isso que realmente faz.