Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 372 for ppid (0.03 sec)

  1. src/syscall/exec_unix_test.go

    		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 {
    		t.Fatalf("Parent and child have the same process ID")
    	}
    
    	if cpgrp != ppgrp {
    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. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/ProcessFixture.groovy

    
    class ProcessFixture {
        final Long pid;
    
        ProcessFixture(Long pid) {
            this.pid = pid
        }
    
        /**
         * Forcefully kills this daemon.
         */
        void kill(boolean killTree) {
            println "Killing process with pid: $pid"
            if (pid == null) {
                throw new RuntimeException("Unable to force kill the process because provided pid is null!")
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  3. src/cmd/go/testdata/script/test2json_interrupt.txt

    		// 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 {
    			// Simulate a ctrl-C on the keyboard by sending SIGINT
    			// to the main test process and its parent.
    			for _, pid := range strings.Split(pids, ",") {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 08 03:52:44 UTC 2022
    - 1.7K bytes
    - Viewed (0)
  4. pkg/ctrlz/topics/proc.go

    	return "proc"
    }
    
    type procInfo struct {
    	Egid       int    `json:"egid"`
    	Euid       int    `json:"euid"`
    	GID        int    `json:"gid"`
    	Groups     []int  `json:"groups"`
    	Pid        int    `json:"pid"`
    	Ppid       int    `json:"ppid"`
    	UID        int    `json:"uid"`
    	Wd         string `json:"wd"`
    	Hostname   string `json:"hostname"`
    	TempDir    string `json:"tempdir"`
    	Threads    int    `json:"threads"`
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 24 14:06:41 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  5. build/pause/linux/orphan.c

    #include <stdio.h>
    #include <unistd.h>
    
    int main() {
      pid_t pid;
      pid = fork();
      if (pid == 0) {
        while (getppid() > 1)
          ;
        printf("Child exiting: pid=%d ppid=%d\n", getpid(), getppid());
        return 0;
      } else if (pid > 0) {
        printf("Parent exiting: pid=%d ppid=%d\n", getpid(), getppid());
        return 0;
      }
      perror("Could not create child");
      return 1;
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Sep 26 13:26:24 UTC 2020
    - 1014 bytes
    - Viewed (0)
  6. pkg/ctrlz/topics/assets/templates/proc.html

            <tr>
                <td>Hostname</td>
                <td>{{.Hostname}}</td>
            </tr>
    
            <tr>
                <td>Parent Process Id</td>
                <td>{{.Ppid}}</td>
            </tr>
    
            <tr>
                <td>Process Id</td>
                <td>{{.Pid}}</td>
            </tr>
    
            <tr>
                <td>Temporary Directory</td>
                <td>{{.TempDir}}</td>
            </tr>
    
            <tr>
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  7. src/runtime/tracecpu.go

    			break // mismatched profile records and tags
    		}
    
    		// Deserialize the data in the profile buffer.
    		recordLen := data[0]
    		timestamp := data[1]
    		ppid := data[2] >> 1
    		if hasP := (data[2] & 0b1) != 0; !hasP {
    			ppid = ^uint64(0)
    		}
    		goid := data[3]
    		mpid := data[4]
    		stk := data[5:recordLen]
    
    		// Overflow records always have their headers contain
    		// all zeroes.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 17:03:35 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  8. src/syscall/exec_freebsd.go

    		// duplicate signal in rare cases, but it won't matter when
    		// using SIGKILL.
    		r1, _, _ = RawSyscall(SYS_GETPPID, 0, 0, 0)
    		if r1 != ppid {
    			upid, _, _ = RawSyscall(SYS_GETPID, 0, 0, 0)
    			_, _, err1 = RawSyscall(SYS_KILL, upid, uintptr(sys.Pdeathsig), 0)
    			if err1 != 0 {
    				goto childerror
    			}
    		}
    	}
    
    	// Pass 1: look for fd[i] < i and move those up above len(fd)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 29 18:51:35 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  9. src/syscall/exec_windows_test.go

    	// run child process
    
    	const _PROCESS_CREATE_PROCESS = 0x0080
    	const _PROCESS_DUP_HANDLE = 0x0040
    	childDumpPath := filepath.Join(t.TempDir(), "ppid.txt")
    	ph, err := syscall.OpenProcess(_PROCESS_CREATE_PROCESS|_PROCESS_DUP_HANDLE|syscall.PROCESS_QUERY_INFORMATION,
    		false, uint32(parent.Process.Pid))
    	if err != nil {
    		t.Fatal(err)
    	}
    	defer syscall.CloseHandle(ph)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 05 23:35:29 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/sys/plan9/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 May 16 22:24:28 UTC 2022
    - 7K bytes
    - Viewed (0)
Back to top