Releases: rajatjain1997/subprocess
Releases · rajatjain1997/subprocess
v0.1.1
Summary
This is a bugfix release.
Changes
Added
exceptions::os_errornow contains the error code and error messages from syscalls
Modified
file_descriptorcreates files with the correct umask and permissions- Only file descriptors marked as
FD_CLOEXECare closed by the OS when a child process is executed
Removed
- No special handling for closing file descriptors in the child process. Any fd that needs to be closed on exec should be marked
FD_CLOEXEC
Contributors
v0.1.0
Summary
This is the first release of subprocess after its announcement on reddit last week.
Changes
Added
- The library is now header-only. Consequently, no build-system like cmake is required.
- Added the
_cmdliteral to construct subprocess::command class. operator|for subproess::cmd is now overloaded forstd::string. This eliminates the need for adding_cmdto every command while piping.descriptor_ptr_tanddescriptor_ptrhelper types to create descriptors- nothrow alternative for
command::run
Modified
- Heavily reworked the
descriptorframework. All I/O fromposix_processis done using descriptors. Users can now add their own descriptors by deriving fromodescriptororidescriptorclasses. posix_spawnpis used in place ofexec()+fork()to allow for greater flexibility while porting to windows.subprocess::commandnow excepts strings instead of aninitializer_listofchar*. Automatic shell expansion is performed on the string usingwordexpsyscall.- Output redirection is now exactly shell-like. To facilitate this,
subprocess::in,subprocess:out, andsubprocess:errnow correspond to tags that allow you to point posix_process file descriptors to each other.
Removed
subprocess::commandcan no longer be constructed using a delimited initializer list of arguments