mirror of
				https://github.com/k3s-io/kubernetes.git
				synced 2025-10-30 05:14:54 +00:00 
			
		
		
		
	This fixes a race condition in runc/systemd at container creation time opencontainers/runc#1683 Signed-off-by: vikaschoudhary16 <vichoudh@redhat.com>
		
			
				
	
	
		
			32 lines
		
	
	
		
			702 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			702 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| // +build solaris,!cgo
 | |
| 
 | |
| //
 | |
| // Implementing the functions below requires cgo support.  Non-cgo stubs
 | |
| // versions are defined below to enable cross-compilation of source code
 | |
| // that depends on these functions, but the resultant cross-compiled
 | |
| // binaries cannot actually be used.  If the stub function(s) below are
 | |
| // actually invoked they will display an error message and cause the
 | |
| // calling process to exit.
 | |
| //
 | |
| 
 | |
| package console
 | |
| 
 | |
| import (
 | |
| 	"os"
 | |
| 
 | |
| 	"golang.org/x/sys/unix"
 | |
| )
 | |
| 
 | |
| const (
 | |
| 	cmdTcGet = unix.TCGETS
 | |
| 	cmdTcSet = unix.TCSETS
 | |
| )
 | |
| 
 | |
| func ptsname(f *os.File) (string, error) {
 | |
| 	panic("ptsname() support requires cgo.")
 | |
| }
 | |
| 
 | |
| func unlockpt(f *os.File) error {
 | |
| 	panic("unlockpt() support requires cgo.")
 | |
| }
 |