Commit Graph
17 Commits
Author SHA1 Message Date
Peter Waller 78d368d8ae Add error handling to Signal() 2014-05-21 19:49:13 +01:00
Peter Waller 1b47f05224 Eliminate Pid() function 2014-05-21 19:49:13 +01:00
Peter Waller c165325ed1 Embed *exec.Cmd in Process struct
Motivation: Trying to slim the Process wrapper as much as possible to
make later transformations easier.
2014-05-21 19:49:12 +01:00
Peter Waller a899cb4fed Don't set p.Root in NewProcess
It's being eliminated by embedding the *Cmd in the Process.
2014-05-21 19:10:17 +01:00
Peter Waller 537f1d6e40 Make Process.Start the same across platforms 2014-05-21 19:07:05 +01:00
Peter Waller 708f015f26 Refactor ShellInvocationCommand
This is done because I want to make the *exec.Command shim narrower so
that we can transition to another method for reading Stdout/Stderr to
fix the newline bug described in #16.
2014-05-21 17:59:02 +01:00
Peter Waller 9b422de60d Eliminate p.Running and cross-platform
Now that the process which starts things is responsible for killing
them, it's no longer possible for the *Process to be nil, so the check
is unnecessary and there is no platform difference, so it's moved to
process.go.
2014-05-21 17:26:30 +01:00
Peter Waller 6f180b7482 Move envAsArray from Process onto Env 2014-05-21 17:22:23 +01:00
David Dollar 0b6b2c63b6 fail more gracefully if a process fails to start, fixes #10 2013-09-17 16:49:37 -04:00
David Dollar 2fdc352d4f cleanup 2013-09-13 17:23:25 -04:00
David Dollar 2d3d829023 use interactive bash on foreman run, possible fix for #9 2013-09-13 16:31:57 -04:00
David Dollar 2a6b13c74d fmt 2013-08-29 21:01:18 -04:00
David Dollar ceaf98ab88 start porting 2013-08-29 18:36:16 -04:00
David Dollar f63618dc1d fix env 2013-08-29 18:35:26 -04:00
David Dollar 3c354f14f3 refactor and cleanup 2013-08-29 14:57:35 -04:00
David Dollar 54b31269e5 unneeded 2013-08-27 17:06:10 -04:00
David Dollar 87886cdb6e updates 2013-08-24 11:11:28 -07:00