Liste des Groupes | Revenir à cu shell |
I'm curious myself. That said, here's something I stumbled acrossThere would have to be a very long time in your '...' part for a pid to get reused. I guess you could ps | grep and check the command name is what you expect.
recently:
background job &
...
kill %1 # clean up
What happens if the background job has already terminated on its
own accord before we reach the kill(1)? Not much, because with job
control, the shell knows that no such job exists. If you do this
with "kill $!", you signal that PID, which no longer refers to the
intended process and may in fact have been reused for a different
process.
Les messages affichés proviennent d'usenet.