Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces improvements to the script sandboxing mechanism and updates documentation to clarify sandbox behavior and version features. The most notable changes include a more robust sandbox mode that now tests scripts before execution, updates to the versioning section in the documentation, and a minor code organization fix in the header file.
Sandboxing and script execution:
Readme.md.ScriptController.cpp, ensured that the child process exits cleanly after initializing the script by adding an explicit call to_exit(0)immediately afterscript->Init().Documentation and versioning:
Readme.mdto include new features and clarify the status of sandbox mode and error handling in v1.0.1 and v2.0.0.Code organization:
ScriptController.hby moving#include <sys/wait.h>to the correct position, improving code clarity.