Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for Getgid (0.11 sec)

  1. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/server/DaemonServices.java

            LOGGER.debug("Creating daemon context with opts: {}", configuration.getJvmOptions());
            return new DefaultDaemonContext(configuration.getUid(),
                canonicalize(Jvm.current().getJavaHome()),
                JavaLanguageVersion.current(),
                configuration.getBaseDir(),
                processEnvironment.maybeGetPid(),
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:15 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  2. src/os/exec_test.go

    	if runtime.GOARCH == "wasm" {
    		t.Skip("Signals send + notify not fully supported om wasm port")
    	}
    
    	c := make(chan os.Signal, 1)
    	signal.Notify(c, os.Interrupt)
    	defer signal.Stop(c)
    
    	p := &os.Process{Pid: os.Getpid()}
    	if err := p.Signal(os.Interrupt); err != nil {
    		t.Fatalf("Signal got err %v, want nil", err)
    	}
    
    	// Verify we actually received the signal.
    	select {
    	case <-time.After(1 * time.Second):
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 18:08:44 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  3. src/os/exec.go

    // on Unix it is syscall.Signal.
    type Signal interface {
    	String() string
    	Signal() // to distinguish from other Stringers
    }
    
    // Getpid returns the process id of the caller.
    func Getpid() int { return syscall.Getpid() }
    
    // Getppid returns the process id of the caller's parent.
    func Getppid() int { return syscall.Getppid() }
    
    // FindProcess looks for a running process by its pid.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 22:06:47 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  4. src/os/pidfd_linux.go

    // seccomp or a similar technology.
    func checkPidfd() error {
    	// Get a pidfd of the current process (opening of "/proc/self" won't
    	// work for waitid).
    	fd, err := unix.PidFDOpen(syscall.Getpid(), 0)
    	if err != nil {
    		return NewSyscallError("pidfd_open", err)
    	}
    	defer syscall.Close(int(fd))
    
    	// Check waitid(P_PIDFD) works.
    	for {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 18:08:44 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  5. src/os/user/cgo_lookup_unix.go

    package user
    
    import (
    	"fmt"
    	"runtime"
    	"strconv"
    	"strings"
    	"syscall"
    	"unsafe"
    )
    
    func current() (*User, error) {
    	return lookupUnixUid(syscall.Getuid())
    }
    
    func lookupUser(username string) (*User, error) {
    	var pwd _C_struct_passwd
    	var found bool
    	nameC := make([]byte, len(username)+1)
    	copy(nameC, username)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:08:14 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  6. platforms/core-runtime/daemon-server/src/main/java/org/gradle/launcher/daemon/bootstrap/DaemonMain.java

            daemon.start();
    
            try {
                DaemonContext daemonContext = daemonServices.get(DaemonContext.class);
                Long pid = daemonContext.getPid();
                daemonStarted(pid, daemon.getUid(), daemon.getAddress(), daemonLog);
                DaemonExpirationStrategy expirationStrategy = daemonServices.get(MasterExpirationStrategy.class);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:15 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  7. src/os/exec/exec_test.go

    // (and thus cannot run as an ordinary Test function, since the testing
    // package monkey-patches those variables before running tests).
    func TestMain(m *testing.M) {
    	flag.Parse()
    
    	pid := os.Getpid()
    	if os.Getenv("GO_EXEC_TEST_PID") == "" {
    		os.Setenv("GO_EXEC_TEST_PID", strconv.Itoa(pid))
    
    		if runtime.GOOS == "windows" {
    			// Normalize environment so that test behavior is consistent.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 20:13:53 UTC 2024
    - 48.4K bytes
    - Viewed (0)
  8. src/cmd/go/internal/fsys/fsys.go

    func Trace(op, path string) {
    	if !doTrace {
    		return
    	}
    	traceMu.Lock()
    	defer traceMu.Unlock()
    	fmt.Fprintf(traceFile, "%d gofsystrace %s %s\n", os.Getpid(), op, path)
    	if pattern := gofsystracestack.Value(); pattern != "" {
    		if match, _ := pathpkg.Match(pattern, path); match {
    			traceFile.Write(debug.Stack())
    		}
    	}
    }
    
    var (
    	doTrace   bool
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 18:35:34 UTC 2024
    - 22.7K bytes
    - Viewed (0)
  9. cmd/test-utils_test.go

    // Temp files created in default Tmp dir
    var globalTestTmpDir = os.TempDir()
    
    // reseed - returns a new seed every time the function is called.
    func reseed() uint32 {
    	return uint32(time.Now().UnixNano() + int64(os.Getpid()))
    }
    
    // nextSuffix - provides a new unique suffix every time the function is called.
    func nextSuffix() string {
    	randmu.Lock()
    	r := randN
    	// Initial seed required, generate one.
    	if r == 0 {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:50:49 UTC 2024
    - 76.9K bytes
    - Viewed (0)
  10. pkg/workloadapi/workload.pb.go

    }
    
    // Deprecated: Use Workload.ProtoReflect.Descriptor instead.
    func (*Workload) Descriptor() ([]byte, []int) {
    	return file_workloadapi_workload_proto_rawDescGZIP(), []int{3}
    }
    
    func (x *Workload) GetUid() string {
    	if x != nil {
    		return x.Uid
    	}
    	return ""
    }
    
    func (x *Workload) GetName() string {
    	if x != nil {
    		return x.Name
    	}
    	return ""
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 18:02:35 UTC 2024
    - 65.9K bytes
    - Viewed (0)
Back to top