Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Bump version to 2.2.0jdm/2.2.0 | Jay Mundrawala | 2015-09-01 | 1 | -1/+1 |
| | |||||
* | Bump version to 2.2.0.rc.0 | Jay Mundrawala | 2015-08-31 | 1 | -1/+1 |
| | |||||
* | Remove dependency on windows-prjdm/no-windows-pr | Jay Mundrawala | 2015-08-26 | 2 | -8/+9 |
| | | | | | windows-pr includes everything under the sun. This is means it does not work no nanoserver | ||||
* | bump version to 2.1.02.1.0 | Lamont Granquist | 2015-05-18 | 1 | -1/+1 |
| | |||||
* | Merge pull request #94 from chef/lcg/no-getpgrp | Lamont Granquist | 2015-05-15 | 1 | -25/+8 |
|\ | | | | | remove getpgrp back to setsid | ||||
| * | remove getpgrp back to setsidlcg/no-getpgrp | Lamont Granquist | 2015-05-15 | 1 | -25/+8 |
| | | |||||
* | | Fix 2 ruby warnings for uninitialized variables | danielsdeleo | 2015-05-15 | 2 | -0/+2 |
|/ | |||||
* | Merge pull request #78 from BackSlasher/add-login | Lamont Granquist | 2015-05-14 | 2 | -4/+67 |
|\ | | | | | with_logon now simulates login in unix | ||||
| * | Added TODO for next major | Nitz | 2015-02-15 | 1 | -0/+3 |
| | | |||||
| * | Option "login" now simulates login in unix | Nitz | 2015-02-15 | 2 | -4/+64 |
| | | | | | | | | | | | | | | | | | | Added: * Secondary groups from etc files * Set environment variables like `su` would * Set primary group to user's primary group if no other group specified All only if `login` is set | ||||
* | | Bumped version to 2.0.1 | Jay Mundrawala | 2014-12-19 | 1 | -1/+1 |
| | | |||||
* | | On windows, send sigkill to process if it exceeds its alloted time | Jay Mundrawala | 2014-12-18 | 1 | -0/+6 |
| | | | | | | | | | | | | | | | | | | Timeouts did not work correctly on windows because we do not kill or abandon the process. What was happening was a timeout condition was getting correctly detected, and an exception was being raised. However, before the exception could propogate, whatever the process was writing was fully read until it closed its FD. | ||||
* | | Fix live_stream for windows | Jay Mundrawala | 2014-12-17 | 1 | -1/+1 |
|/ | | | | | The windows module was looking to write stdout to live_stream instead of live_stdout. | ||||
* | Document input and live stream options to `new` | danielsdeleo | 2014-11-24 | 1 | -0/+11 |
| | |||||
* | Block until child stream is emptyryan/issue_2062_12 | Ryan Cragun | 2014-10-31 | 1 | -1/+1 |
| | |||||
* | Remove child process pipe from open pipes when the stream is closed | Ryan Cragun | 2014-10-31 | 1 | -0/+1 |
| | |||||
* | Rescue ArgumentError on Marshal.load of buffered child status | Ryan Cragun | 2014-10-31 | 1 | -1/+1 |
| | |||||
* | Add buffering to the process status pipe | Ryan Cragun | 2014-10-31 | 2 | -8/+17 |
| | |||||
* | Bump version number after 2.0.0 branching. | Serdar Sutay | 2014-10-27 | 1 | -1/+1 |
| | |||||
* | Merge pull request #57 from ClogenyTechnologies/kd/processgrp-fix | lamont-granquist | 2014-09-11 | 1 | -1/+4 |
|\ | | | | | aix getpgid fails when called from parent and parent and child have different session | ||||
| * | fix getpgid issue on aix | kaustubh-d | 2014-08-27 | 1 | -1/+4 |
| | | |||||
* | | bumping version to 2.0.0.rc.0 | Lamont Granquist | 2014-09-05 | 1 | -1/+1 |
| | | |||||
* | | remove LC_ALL default environment variable | Lamont Granquist | 2014-08-28 | 2 | -16/+4 |
| | | | | | | | | now that we no longer support ruby 1.8.7 its time to retire this | ||||
* | | aix does not allow resetting real uid once the euid is changed to non-root. | kaustubh-d | 2014-08-27 | 1 | -1/+1 |
| | | |||||
* | | remove #clean_parent_file_descriptors which is not required now. | kaustubh-d | 2014-08-25 | 1 | -27/+0 |
| | | |||||
* | | clean_parent_file_descriptors can be achieve with close_others flag to exec ↵ | kaustubh-d | 2014-08-25 | 1 | -1/+1 |
|/ | | | | method, aix removed method was slow. | ||||
* | Bump version number for RC release.1.6.0.rc.0 | Serdar Sutay | 2014-08-08 | 1 | -1/+1 |
| | |||||
* | Simplify live_stream vs live_stdout vs live_stderr based on PR comments | Max Lincoln | 2014-07-17 | 3 | -26/+25 |
| | |||||
* | Support separate live stream for stderr | Max Lincoln | 2014-07-17 | 3 | -4/+24 |
| | |||||
* | AIX returns Errno::EPERM here | Lamont Granquist | 2014-07-08 | 1 | -1/+1 |
| | |||||
* | Correct spelling in spec files | Tyler Cipriani | 2014-05-16 | 1 | -1/+1 |
| | |||||
* | Correct spelling of "exceeded" | Tyler Cipriani | 2014-05-15 | 1 | -2/+2 |
| | |||||
* | Merge pull request #26 from akshaykarle/master | Serdar Sutay | 2014-05-13 | 3 | -4/+7 |
|\ | | | | | [#MIXLIB-19] Copy stderr to live_stream along with stdout of the subprocess | ||||
| * | Add stderr to live_stream. | Akshay Karle | 2013-09-26 | 3 | -4/+7 |
| | | |||||
* | | Bump version number post release. | sersut | 2014-04-08 | 1 | -1/+1 |
| | | |||||
* | | Bump the version number for release.1.4.01.4-stable | sersut | 2014-04-08 | 1 | -1/+1 |
| | | |||||
* | | Bump the version number for RC release.1.4.0.rc.1 | sersut | 2014-03-31 | 1 | -1/+1 |
| | | |||||
* | | Handle ESRCH when getting pgid of a zombie on OS X | danielsdeleo | 2014-03-31 | 1 | -1/+17 |
| | | |||||
* | | Bump the version number for RC release.1.4.0.rc.0 | sersut | 2014-03-30 | 1 | -1/+1 |
| | | |||||
* | | Handle leak fix for leaked token handle, avoid double close | adamedx | 2014-03-17 | 2 | -16/+25 |
| | | |||||
* | | Only close handles that are set to a valid handle value | Adam Edwards | 2014-03-17 | 1 | -3/+3 |
| | | |||||
* | | Retire the GC disable hack for all but ruby 1.8.7 | danielsdeleo | 2014-03-07 | 1 | -4/+9 |
| | | | | | | | | | | | | | | | | Originally we needed this hack for 1.8.6 and 1.8.7, which were the most common versions in use at the time. 1.8.6 is dead so we don't need to account for it any more, which leaves 1.8.7 as the only case we need to care about for this hack. On Ruby 1.9 and greater this hack isn't needed and causes memory bloat for very long running shell commands. | ||||
* | | Adds error? method to check whether the process exited successfully. This ↵ | Chris Armstrong | 2014-01-21 | 1 | -8/+12 |
| | | | | | | | | allows the user to use custom error-handling logic. error! now uses error? internally. | ||||
* | | Always send KILL to process group | danielsdeleo | 2013-12-09 | 1 | -32/+10 |
| | | | | | | | | | | | | | | | | | | There is not a good way to reliably detect whether all grandchildren have exited after sending a TERM to the process group; if the child has correctly exited, grandchildren (which may be unresponsive) will have been adopted by init (ppid == 1) so the parent cannot wait() on them. To ensure no stuck grandchildren are left, send a KILL to the process group after allowing the processes time to clean up. | ||||
* | | Run commands with unique pgid to improve timeout cleanup | danielsdeleo | 2013-12-09 | 1 | -6/+59 |
| | | | | | | | | | | | | | | To ensure that all child processes are properly signaled to exit before forcibly killing them, use `setsid()` in the child process to give the child (and any grandchildren it might create) a new and unique process group. If the command times out, kill and reap the entire process group. | ||||
* | | Bump the version number for release.1.3.0 | sersut | 2013-12-03 | 1 | -1/+1 |
| | | |||||
* | | Add termination info to error messages | danielsdeleo | 2013-11-04 | 2 | -1/+5 |
| | | | | | | | | | | If no logger is configured, we still want to inform the user that the process was killed (and how). | ||||
* | | Add logging about timed-out cmd termination when possible | danielsdeleo | 2013-11-04 | 1 | -0/+2 |
| | | | | | | | | | | If a logger is configured, send `error` level messages about child process termination for timeout violations. | ||||
* | | Cleanup control flow in main loop | danielsdeleo | 2013-11-01 | 1 | -13/+13 |
| | | | | | | | | | | removes some complexity that was introduced with the fix to kill timed-out child processes | ||||
* | | Force subprocess to exit after timeout | danielsdeleo | 2013-11-01 | 1 | -17/+52 |
|/ | | | | | | | | Fixes MIXLIB-16. This issue is particularly prominent when yum/rpm commands go off the deep end repeatedly, but affects any case where a process takes longer than the timeout to complete. |