Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 153 for Setsid (0.12 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. src/main/java/jcifs/internal/smb1/trans2/Trans2FindFirst2Response.java

        public Trans2FindFirst2Response ( Configuration config ) {
            super(config, SMB_COM_TRANSACTION2, SmbComTransaction.TRANS2_FIND_FIRST2);
        }
    
    
        /**
         * @return the sid
         */
        public final int getSid () {
            return this.sid;
        }
    
    
        /**
         * @return the isEndOfSearch
         */
        public final boolean isEndOfSearch () {
            return this.isEndOfSearch;
        }
    
    
        /**
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 5.7K bytes
    - Viewed (0)
  6. 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)
  7. src/runtime/testdata/testprog/syscalls_none.go

    // Copyright 2017 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // 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 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 20:00:09 UTC 2024
    - 471 bytes
    - Viewed (0)
  8. 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)
  9. pkg/util/procfs/procfs_linux_test.go

    		t.Skipf("not supported on GOOS=%s", runtime.GOOS)
    	}
    	pids, err := PidOf(filepath.Base(os.Args[0]))
    	assert.Empty(t, err)
    	assert.NotZero(t, pids)
    	assert.Contains(t, pids, os.Getpid())
    }
    
    func TestPKill(t *testing.T) {
    	if runtime.GOOS == "darwin" || runtime.GOOS == "windows" {
    		t.Skipf("not supported on GOOS=%s", runtime.GOOS)
    	}
    	sig := syscall.SIGCONT
    	c := make(chan os.Signal, 1)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 20 07:13:28 UTC 2022
    - 3.1K bytes
    - Viewed (0)
  10. src/cmd/go/testdata/script/test2json_interrupt.txt

    	"time"
    )
    
    func FuzzInterrupt(f *testing.F) {
    	pids := os.Getenv("GO_TEST_INTERRUPT_PIDS")
    	if pids == "" {
    		// This is the main test process.
    		// Set the environment variable for fuzz workers.
    		pid := os.Getpid()
    		ppid := os.Getppid()
    		os.Setenv("GO_TEST_INTERRUPT_PIDS", fmt.Sprintf("%d,%d", ppid, pid))
    	}
    
    	sentInterrupt := false
    	f.Fuzz(func(t *testing.T, orig string) {
    		if !sentInterrupt {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 08 03:52:44 UTC 2022
    - 1.7K bytes
    - Viewed (0)
Back to top