15 Commits

Author SHA1 Message Date
Guillaume J. Charmes
a24f8808b5 Fix windows compilation (#142) 2022-03-27 10:36:46 -07:00
Fraser Waters
7de28cee0d Add GHA workflow to run test_crosscompile and go test (#141)
* Add GHA workflow to run test_crosscompile and go test
* crosscompile job doesn't need setup-go
* Test more go versions
* Test 1.6
* Remove 1.13 and add comment of testing strategy
2022-03-27 08:14:20 -04:00
Guillaume J. Charmes
f73a158a9a Simplify solaris implementation. (#120)
Remove golang.org/x/sys/unix dependency for solaris
Add new go build tag directives
2021-05-29 18:39:47 -04:00
Guillaume J. Charmes
f272787f85 Add StartWithAttrs to allow bypassing setsid/setctty (#97)
Signed-off-by: Guillaume J. Charmes <git+guillaume@charmes.net>
2020-05-07 09:35:59 -04:00
Drew DeVault
b6e1bdd4a4 Set Ctty in SysProcAttr (#75) 2019-03-31 20:15:51 -07:00
Okunev Yu Dmitry
521317be5e Don't set Stdin/Stdout/Stderr if already set (#71)
* only set stdout and stderr if not already set

* Don't set cmd.Stdin if it's already set

Considered @craek's codereview
2019-03-18 08:38:44 -04:00
Dustin Spicuzza
db8e3cd836 Add StartWithSize to allow resizing pty before starting a command to avoid races (#62) 2018-09-15 11:00:18 -04:00
Steve Sanders
fe7bf43396 Don't attempt to build on windows 2015-11-04 12:44:15 -08:00
Jonathan Boulle
f7ee69f312 run: don't override supplied SysProcAttr
If we're passed an exec.Cmd that already has a configured SysProcAttr,
Start was obliterating it by overwriting it with a new struct in order
to set `Setctty` and `Setsid`. Instead, just adjust the parameters that
we need.
2015-10-07 16:04:24 -07:00
Keith Rarick
1fb082f569 set controlling tty for new process; closes #8 2012-11-03 16:17:05 -07:00
Keith Rarick
59dd1489cc work with new os/exec 2012-02-01 21:46:36 -08:00
Keith Rarick
3b1c6581cb go fmt 2012-02-01 21:41:44 -08:00
Sherjil Ozair
9e03abc5be Some changes to make the code compile with GO version 1.0.1. However, there would be also be some changes in functionality. This is due to changes in the type of cmd.Stdin and cmd.Stdout, and their inability to write as well read. The example given in readme.md doesn't work. I'm figuring out a way to make changes in the example so that it works. 2012-06-13 13:29:54 +01:00
Keith Rarick
227762de52 gofix for release.r57.1 2011-05-24 12:08:43 -07:00
Keith Rarick
12319125d6 initial 2011-05-03 14:24:49 -07:00