Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for Getpgrp (0.35 sec)

  1. src/syscall/exec_solaris_test.go

    // license that can be found in the LICENSE file.
    
    //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)
  2. src/syscall/exec_aix_test.go

    // license that can be found in the LICENSE file.
    
    //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)
  3. src/syscall/exec_unix_test.go

    	proc := exec.Command("cat")
    	stdin, err := proc.StdinPipe()
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	return &command{stdin, proc, t}
    }
    
    func parent() (pid, pgrp int) {
    	return syscall.Getpid(), syscall.Getpgrp()
    }
    
    func TestZeroSysProcAttr(t *testing.T) {
    	ppid, ppgrp := parent()
    
    	cmd := create(t)
    
    	cmd.Start()
    	defer cmd.Stop()
    
    	cpid, cpgrp := cmd.Info()
    
    	if cpid == 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)
Back to top