How to kill jobs by there job-id instead of there pid #4524
-
Hi, Aything wrong in my setup? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
Hi, Is my question unclear or is the desired behavior simply not available in xonsh? |
Beta Was this translation helpful? Give feedback.
-
Ok so this will be possible at some point I guess. I tried to check the code myself though I have very limited experience with larger projects. From Lines 261 to 262 in c2d25ac tid value.
On Line 117 in c2d25ac _kill takes a job argument. Should this be modified such that it could also handle an tid: int ? How could both cases be distinguished?
|
Beta Was this translation helpful? Give feedback.
-
Copying from comment below: You could do something like this in your
and then you can do this:
If you wanted to roll something like this into |
Beta Was this translation helpful? Give feedback.
Copying from comment below:
You could do something like this in your
xonshrc
as a temporary fix:and then you can do this:
If you wanted to roll something like this into
xonsh
itself, it would probably be best to have it be part of a subcommand of thejobs
builtin, so you could runjobs kill <task-id>
(anothe…