-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3380 from oasisprotocol/tjanez/stable/20.11.x/bac…
…kport-macos-fix [BACKPORT/20.11.x] go: Update to build on macOS
- Loading branch information
Showing
6 changed files
with
34 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
go: Update to build on macOS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// Package syscall defines OS-specific syscall parameters. | ||
package syscall | ||
|
||
import "syscall" | ||
|
||
// IoctlTermiosGetAttr is the ioctl that implements termios tcgetattr. | ||
const IoctlTermiosGetAttr = syscall.TIOCGETA | ||
|
||
// CmdAttrs is the SysProcAttr used for spawning child processes. It is empty | ||
// for Darwin as PR_SET_PDEATH_SIG is not implemented. As a consequence, child | ||
// processes may not be cleaned up. | ||
var CmdAttrs = &syscall.SysProcAttr{} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// Package syscall defines OS-specific syscall parameters. | ||
package syscall | ||
|
||
import "syscall" | ||
|
||
// IoctlTermiosGetAttr is the ioctl that implements termios tcgetattr. | ||
const IoctlTermiosGetAttr = syscall.TCGETS | ||
|
||
// CmdAttrs is the SysProcAttr that will ensure graceful cleanup (on Linux). | ||
var CmdAttrs = &syscall.SysProcAttr{ | ||
Pdeathsig: syscall.SIGKILL, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters