Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 169 for getgid (0.11 sec)

  1. cluster/gce/gci/apiserver_kms_test.go

    			defer c.tearDown()
    
    			e := kubeAPIServerEnv{
    				KubeHome:                     c.kubeHome,
    				KubeAPIServerRunAsUser:       strconv.Itoa(os.Getuid()),
    				EncryptionProviderConfigPath: filepath.Join(c.kubeHome, "encryption-provider-config.yaml"),
    				EncryptionProviderConfig:     tc.encryptionProviderConfig,
    			}
    
    			c.mustInvokeFunc(
    				e,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Oct 30 06:23:50 UTC 2021
    - 6.3K bytes
    - Viewed (0)
  2. src/cmd/link/internal/ld/testdata/deadcode/globalmap.go

    package main
    
    import "os"
    
    // Too small to trigger deadcode (currently)
    var small = map[string]int{"foo": 1}
    
    // Has side effects, which prevent deadcode
    var effect = map[string]int{"foo": os.Getpid()}
    
    // Large and side-effect free
    var large = map[string]int{
    	"11": 1, "12": 2, "13": 3, "14": 4, "15": 5, "16": 6, "17": 7, "18": 8, "19": 9, "110": 10,
    	"21": 1, "22": 2, "23": 3, "24": 4, "25": 5, "26": 6, "27": 7, "28": 8, "29": 9, "210": 10,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 06 20:56:47 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  3. test/sigchld.go

    // license that can be found in the LICENSE file.
    
    // Test that a program can survive SIGCHLD.
    
    package main
    
    import "syscall"
    
    func main() {
    	syscall.Kill(syscall.Getpid(), syscall.SIGCHLD)
    	println("survived SIGCHLD")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 381 bytes
    - Viewed (0)
  4. src/cmd/link/internal/ld/testdata/issue39256/x.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    import (
    	_ "unsafe"
    )
    
    //go:cgo_import_dynamic libc_getpid getpid "libc.so"
    //go:cgo_import_dynamic libc_kill kill "libc.so"
    //go:cgo_import_dynamic libc_close close "libc.so"
    //go:cgo_import_dynamic libc_open open "libc.so"
    
    //go:cgo_import_dynamic _ _ "libc.so"
    
    func trampoline()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 16 18:39:54 UTC 2020
    - 489 bytes
    - Viewed (0)
  5. testing/internal-performance-testing/src/main/groovy/org/gradle/performance/fixture/PidInstrumentation.groovy

        private final File pidFileInitScript = createPidFileInitScript(pidFile)
    
        List<String> getGradleArgs() {
            ["--init-script", pidFileInitScript.absolutePath]
        }
    
        String getPid() {
            pidFile.text
        }
    
        private static File createPidFile() {
            def pidFile = File.createTempFile("build-under-test", ".pid")
            pidFile.deleteOnExit()
            pidFile
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  6. src/runtime/testdata/testprog/segv.go

    	register("Segv", Segv)
    }
    
    var Sum int
    
    func Segv() {
    	c := make(chan bool)
    	go func() {
    		close(c)
    		for i := 0; ; i++ {
    			Sum += i
    		}
    	}()
    
    	<-c
    
    	syscall.Kill(syscall.Getpid(), syscall.SIGSEGV)
    
    	// Wait for the OS to deliver the signal.
    	select {}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 05 15:24:08 UTC 2023
    - 479 bytes
    - Viewed (0)
  7. src/os/executable_plan9.go

    // license that can be found in the LICENSE file.
    
    //go:build plan9
    
    package os
    
    import (
    	"internal/itoa"
    	"syscall"
    )
    
    func executable() (string, error) {
    	fn := "/proc/" + itoa.Itoa(Getpid()) + "/text"
    	f, err := Open(fn)
    	if err != nil {
    		return "", err
    	}
    	defer f.Close()
    	return syscall.Fd2path(int(f.Fd()))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 427 bytes
    - Viewed (0)
  8. src/runtime/testdata/testprog/syscalls_none.go

    // license that can be found in the LICENSE file.
    
    //go:build !linux
    // +build !linux
    
    package main
    
    func gettid() int {
    	return 0
    }
    
    func tidExists(tid int) (exists, supported bool, err error) {
    	return false, false, nil
    }
    
    func getcwd() (string, error) {
    	return "", nil
    }
    
    func unshareFs() error {
    	return nil
    }
    
    func chdir(path string) error {
    	return nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 20:00:09 UTC 2024
    - 471 bytes
    - Viewed (0)
  9. src/runtime/testdata/testprogcgo/segv.go

    func init() {
    	register("SegvInCgo", SegvInCgo)
    }
    
    func SegvInCgo() {
    	c := make(chan bool)
    	go func() {
    		close(c)
    		for {
    			C.nop()
    		}
    	}()
    
    	<-c
    
    	syscall.Kill(syscall.Getpid(), syscall.SIGSEGV)
    
    	// Wait for the OS to deliver the signal.
    	C.pause()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 05 15:24:08 UTC 2023
    - 525 bytes
    - Viewed (0)
  10. pkg/util/procfs/procfs_linux_test.go

    	}
    
    	re, err := regexp.Compile("(^|/)" + filepath.Base(os.Args[0]) + "$")
    	assert.Empty(b, err)
    
    	for i := 0; i < b.N; i++ {
    		pids := getPids(re)
    
    		b.StopTimer()
    		assert.NotZero(b, pids)
    		assert.Contains(b, pids, os.Getpid())
    		b.StartTimer()
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 20 07:13:28 UTC 2022
    - 3.1K bytes
    - Viewed (0)
Back to top