Skip to content

Fix kill command so that it deletes all the temp files.#45

Merged
ericaltendorf merged 1 commit into
ericaltendorf:developmentfrom
fdachille:main
Mar 14, 2021
Merged

Fix kill command so that it deletes all the temp files.#45
ericaltendorf merged 1 commit into
ericaltendorf:developmentfrom
fdachille:main

Conversation

@fdachille

Copy link
Copy Markdown
Contributor

The get_temp_files function detects the log file open in twice so it was returning it twice, and the deletion of temporary files during the kill command was attempting to delete the log file twice which failed the second attempt. By returning all the temp files in a set, it only deletes each file once and succeeds in deleting all the temp files.

@ericaltendorf ericaltendorf changed the base branch from main to development March 14, 2021 16:50

@ericaltendorf ericaltendorf left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

@ericaltendorf ericaltendorf merged commit d10b90d into ericaltendorf:development Mar 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants