Skip to content
This repository was archived by the owner on Dec 13, 2018. It is now read-only.

Commit 6bdfd8f

Browse files
committed
process.go can compile on FreeBSD
Signed-off-by: Alexey Guskov <[email protected]>
1 parent 8c6ed5e commit 6bdfd8f

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

Diff for: console_freebsd.go

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// +build freebsd
2+
3+
package libcontainer
4+
5+
import (
6+
"errors"
7+
)
8+
9+
// newConsole returns an initalized console that can be used within a container by copying bytes
10+
// from the master side to the slave that is attached as the tty for the container's init process.
11+
func newConsole(uid, gid int) (Console, error) {
12+
return nil, errors.New("libcontainer console is not supported on FreeBSD")
13+
}

0 commit comments

Comments
 (0)