-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve handling of processes with single argument
Previously I would do shlex.split(cmdline[0]) if the cmdline had only one argument. This would break single argument processes with spaces in the executable path. Now I check both that the cmdline has one argument and that that argument is an executable (using shutil.which()). This means now it will only fail for relative executable paths with spaces in them, which should be very uncommon.
- Loading branch information
1 parent
0f0a1d1
commit 16a45b7
Showing
3 changed files
with
61 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters