General changes
- Changes in the FIFOConnction
class:
- Added methods to open FIFOs in read, write or read/write mode.
- Added an option to perform the open system call in non-blocking
mode.
- Added methods to only perform read or write actions.
- Increased MAX_MESSAGE_LEN to 512.
- Changes in the File
class:
- File permissions are changed only if the requested mode is
different than the present one.
- Changes in make_dir
logic:
- First try to create the directory;
- If this action does not fail then try to assign the right
permissions to the directory;
- If the mkdir call
fails then check if this is due to the directory already existing: in
this case try to change directory permissions;
- If the mkdir call
fails for other reasons then throw a SystemCallIssue
exception.
- Permissions on directories
are changed systematically with chmod.
- Changes in the MapFile class:
- Added a simple method (is_mapped)
to check if the file is mapped in memory or not.
- Changes in the Executable
class:
- Fixed problem with child not exiting in case of a failure in
the exec call.
- SIGTERM and SIGINT are set to SIG_DFL in the child process
after fork.
- Changes in the Process class:
- The terminate methd
issues only a SIGTERM now (no SIGQUIT nor SIGKILL); the previous code
did not allow for long exit handlers to be executed.