Search Options

Results per page
Sort
Preferred Languages
Advance

Results 231 - 240 of 468 for Getgid (0.1 sec)

  1. src/cmd/go/internal/modload/stat_unix.go

    // permission, hasWritePerm reports false if no appropriate permission bit is
    // set even if the current user is root.
    func hasWritePerm(path string, fi fs.FileInfo) bool {
    	if os.Getuid() == 0 {
    		// The root user can access any file, but we still want to default to
    		// read-only mode if the go.mod file is marked as globally non-writable.
    		// (If the user really intends not to be in readonly mode, they can
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 29 16:24:51 UTC 2022
    - 963 bytes
    - Viewed (0)
  2. src/os/signal/example_unix_test.go

    // it should abandon its work after a signal is received.
    func ExampleNotifyContext() {
    	ctx, stop := signal.NotifyContext(context.Background(), os.Interrupt)
    	defer stop()
    
    	p, err := os.FindProcess(os.Getpid())
    	if err != nil {
    		log.Fatal(err)
    	}
    
    	// On a Unix-like system, pressing Ctrl+C on a keyboard sends a
    	// SIGINT signal to the process of the program in execution.
    	//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 15:34:56 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  3. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/server/api/HandleReportStatus.java

                String status = execution.getDaemonStateControl().getState().toString().toUpperCase(Locale.ROOT);
                Status message = new Status(execution.getDaemonContext().getPid(), version, status);
                execution.getConnection().completed(new Success(message));
            } else {
                execution.proceed();
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 06:47:38 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  4. platforms/core-runtime/native/src/main/java/org/gradle/internal/nativeintegration/processenvironment/NativePlatformBackedProcessEnvironment.java

            process.setWorkingDirectory(processDir);
        }
    
        @Override
        public File getProcessDir() {
            return process.getWorkingDirectory();
        }
    
        @Override
        public Long getPid() {
            return (long) process.getProcessId();
        }
    
        @Override
        public void detachProcess() {
            process.detach();
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 05 19:36:14 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  5. src/cmd/cgo/internal/testsanitizers/testdata/tsan11.go

    		exit(EXIT_FAILURE);
    	}
    }
    */
    import "C"
    
    func main() {
    	ch := make(chan os.Signal, 1)
    	signal.Notify(ch, syscall.SIGUSR2)
    
    	C.register_handler(C.int(syscall.SIGUSR1))
    	syscall.Kill(syscall.Getpid(), syscall.SIGUSR1)
    
    	<-ch
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  6. 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)
  7. src/runtime/pprof/vminfo_darwin.go

    }
    
    func regionFilename(address uint64) string {
    	buf := make([]byte, _MAXPATHLEN)
    	r := proc_regionfilename(
    		os.Getpid(),
    		address,
    		unsafe.SliceData(buf),
    		int64(cap(buf)))
    	if r == 0 {
    		return ""
    	}
    	return string(buf[:r])
    }
    
    // mach_vm_region and proc_regionfilename are implemented by
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 04 23:35:39 UTC 2023
    - 2K bytes
    - Viewed (0)
  8. pkg/ctrlz/topics/signals.go

    		fw.RenderHTML(w, tmpl, nil)
    	})
    
    	_ = context.JSONRouter().StrictSlash(true).NewRoute().Methods("PUT", "POST").Path("/SIGUSR1").HandlerFunc(func(w http.ResponseWriter, req *http.Request) {
    		err := syscall.Kill(os.Getpid(), syscall.SIGUSR1)
    		if err != nil {
    			w.WriteHeader(http.StatusInternalServerError)
    			return
    		}
    		w.WriteHeader(http.StatusAccepted)
    	})
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Feb 07 17:12:24 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  9. src/main/java/jcifs/config/DelegatingConfiguration.java

            return this.delegate.getLocalTimezone();
        }
    
    
        /**
         * {@inheritDoc}
         * 
         * @see jcifs.Configuration#getPid()
         */
        @Override
        public int getPid () {
            return this.delegate.getPid();
        }
    
    
        /**
         * {@inheritDoc}
         * 
         * @see jcifs.Configuration#getMaxMpxCount()
         */
        @Override
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Tue Jul 07 10:50:16 UTC 2020
    - 17.6K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/SmbFileOutputStream.java

                        off += cnt;
                    }
                    else if ( this.useNTSmbs ) {
                        this.reqx.setParam(fh.getFid(), this.fp, len - w, b, off, w);
                        if ( ( flags & 1 ) != 0 ) {
                            this.reqx.setParam(fh.getFid(), this.fp, len, b, off, w);
                            this.reqx.setWriteMode(0x8);
                        }
                        else {
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sat Nov 13 15:14:04 UTC 2021
    - 11.9K bytes
    - Viewed (0)
Back to top