Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for setpgid (0.16 sec)

  1. src/syscall/exec_unix_test.go

    	}
    
    	if cpid != cpgrp {
    		t.Fatalf("Child's process group is not the child's process ID")
    	}
    }
    
    func TestPgid(t *testing.T) {
    	ppid, ppgrp := parent()
    
    	cmd1 := create(t)
    
    	cmd1.proc.SysProcAttr = &syscall.SysProcAttr{Setpgid: true}
    	cmd1.Start()
    	defer cmd1.Stop()
    
    	cpid1, cpgrp1 := cmd1.Info()
    
    	if cpid1 == ppid {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 22 04:41:27 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  2. src/syscall/syscall_js.go

    	return string(buf[:n]), nil
    }
    
    func Getuid() int {
    	return jsProcess.Call("getuid").Int()
    }
    
    func Getgid() int {
    	return jsProcess.Call("getgid").Int()
    }
    
    func Geteuid() int {
    	return jsProcess.Call("geteuid").Int()
    }
    
    func Getegid() int {
    	return jsProcess.Call("getegid").Int()
    }
    
    func Getgroups() (groups []int, err error) {
    	defer recoverErr(&err)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  3. src/syscall/exec_solaris_test.go

    //go:build solaris
    
    package syscall
    
    import "unsafe"
    
    //go:cgo_import_dynamic libc_Getpgid getpgid "libc.so"
    //go:cgo_import_dynamic libc_Getpgrp getpgrp "libc.so"
    
    //go:linkname libc_Getpgid libc_Getpgid
    //go:linkname libc_Getpgrp libc_Getpgrp
    
    var (
    	libc_Getpgid,
    	libc_Getpgrp libcFunc
    )
    
    func Getpgid(pid int) (pgid int, err error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 22 04:41:27 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  4. src/syscall/exec_aix_test.go

    //go:build aix
    
    package syscall
    
    import "unsafe"
    
    //go:cgo_import_dynamic libc_Getpgid getpgid "libc.a/shr_64.o"
    //go:cgo_import_dynamic libc_Getpgrp getpgrp "libc.a/shr_64.o"
    
    //go:linkname libc_Getpgid libc_Getpgid
    //go:linkname libc_Getpgrp libc_Getpgrp
    
    var (
    	libc_Getpgid,
    	libc_Getpgrp libcFunc
    )
    
    func Getpgid(pid int) (pgid int, err error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 22 04:41:27 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  5. src/os/proc.go

    // On Windows, it returns -1.
    func Geteuid() int { return syscall.Geteuid() }
    
    // Getgid returns the numeric group id of the caller.
    //
    // On Windows, it returns -1.
    func Getgid() int { return syscall.Getgid() }
    
    // Getegid returns the numeric effective group id of the caller.
    //
    // On Windows, it returns -1.
    func Getegid() int { return syscall.Getegid() }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:33:12 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  6. src/syscall/syscall_wasip1.go

    	return "", ENOSYS
    }
    
    func Getuid() int {
    	return 1
    }
    
    func Getgid() int {
    	return 1
    }
    
    func Geteuid() int {
    	return 1
    }
    
    func Getegid() int {
    	return 1
    }
    
    func Getgroups() ([]int, error) {
    	return []int{1}, nil
    }
    
    func Getpid() int {
    	return 3
    }
    
    func Getppid() int {
    	return 2
    }
    
    func Gettimeofday(tv *Timeval) error {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  7. src/runtime/os_aix.go

    	}
    	return int32(r)
    }
    
    //go:nosplit
    func getgid() int32 {
    	r, errno := syscall0(&libc_getgid)
    	if errno != 0 {
    		print("getgid failed ", errno)
    		throw("getgid")
    	}
    	return int32(r)
    }
    
    //go:nosplit
    func getegid() int32 {
    	r, errno := syscall0(&libc_getegid)
    	if errno != 0 {
    		print("getegid failed ", errno)
    		throw("getegid")
    	}
    	return int32(r)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  8. src/syscall/syscall_plan9.go

    	if e != nil {
    		return 0, e
    	}
    
    	m := 0
    	for ; m < n && b[m] == ' '; m++ {
    	}
    
    	return atoi(b[m : n-1]), nil
    }
    
    func Getpid() (pid int) {
    	n, _ := readnum("#c/pid")
    	return int(n)
    }
    
    func Getppid() (ppid int) {
    	n, _ := readnum("#c/ppid")
    	return int(n)
    }
    
    func Read(fd int, p []byte) (n int, err error) {
    	return Pread(fd, p, -1)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  9. src/os/types.go

    	ModeNamedPipe  = fs.ModeNamedPipe  // p: named pipe (FIFO)
    	ModeSocket     = fs.ModeSocket     // S: Unix domain socket
    	ModeSetuid     = fs.ModeSetuid     // u: setuid
    	ModeSetgid     = fs.ModeSetgid     // g: setgid
    	ModeCharDevice = fs.ModeCharDevice // c: Unix character device, when ModeDevice is set
    	ModeSticky     = fs.ModeSticky     // t: sticky
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 20:52:06 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  10. cluster/addons/dns/kube-dns/kube-dns.yaml.in

              mountPath: /etc/k8s/dns/dnsmasq-nanny
            securityContext:
              capabilities:
                drop:
                  - all
                add:
                  - NET_BIND_SERVICE
                  - SETGID
          - name: sidecar
            image: registry.k8s.io/dns/k8s-dns-sidecar:1.23.1
            livenessProbe:
              httpGet:
                path: /metrics
                port: 10054
                scheme: HTTP
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 03 03:19:02 UTC 2024
    - 7K bytes
    - Viewed (0)
Back to top