From 6bdfd8fcfd0ae114a922321f53634b92f3037822 Mon Sep 17 00:00:00 2001 From: Alexey Guskov Date: Wed, 27 May 2015 15:41:50 +0300 Subject: [PATCH] process.go can compile on FreeBSD Signed-off-by: Alexey Guskov --- console_freebsd.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 console_freebsd.go diff --git a/console_freebsd.go b/console_freebsd.go new file mode 100644 index 00000000..4d20b8da --- /dev/null +++ b/console_freebsd.go @@ -0,0 +1,13 @@ +// +build freebsd + +package libcontainer + +import ( + "errors" +) + +// newConsole returns an initalized console that can be used within a container by copying bytes +// from the master side to the slave that is attached as the tty for the container's init process. +func newConsole(uid, gid int) (Console, error) { + return nil, errors.New("libcontainer console is not supported on FreeBSD") +}