Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 251 for Pid (0.02 sec)

  1. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/daemon/DaemonClientFixture.groovy

        final ProcessFixture process
    
        DaemonClientFixture(GradleHandle gradleHandle) {
            this.gradleHandle = gradleHandle
            Long pid
            ConcurrentTestUtil.poll {
                pid = getPidFromOutput(gradleHandle) as Long
            }
            this.process = new ProcessFixture(pid)
        }
    
        DaemonClientFixture kill() {
            process.kill(false)
            gradleHandle.waitForFailure()
            return this
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  2. src/packaging/deb/init.d/fess

    			--user "$FESS_USER" \
    			--quiet \
    			--retry forever/TERM/20 > /dev/null
    		if [ $? -eq 1 ]; then
    			log_progress_msg "$DESC is not running but pid file exists, cleaning up"
    		elif [ $? -eq 3 ]; then
    			PID="`cat $PID_FILE`"
    			log_failure_msg "Failed to stop $DESC (pid $PID)"
    			exit 1
    		fi
    		rm -f "$PID_FILE"
    	else
    		log_progress_msg "(not running)"
    	fi
    	log_end_msg 0
    	;;
      status)
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Sun Jan 15 06:32:15 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  3. test/fixedbugs/issue59680.go

    // license that can be found in the LICENSE file.
    
    package main
    
    import (
    	"sync"
    	"time"
    )
    
    type B struct {
    	pid int
    	f   func() (uint64, error)
    	wg  sync.WaitGroup
    	v   uint64
    }
    
    func newB(pid int) *B {
    	return &B{
    		pid: pid,
    	}
    }
    
    //go:noinline
    func Sq(i int) uint64 {
    	S++
    	return uint64(i * i)
    }
    
    type RO func(*B)
    
    var ROSL = []RO{
    	Bad(),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 05 21:04:38 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  4. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/daemon/DaemonRegistryStateProbe.groovy

            this.context = context
            this.registry = registry
        }
    
        void resetToken() {
            def daemonInfo = registry.all.find { it.context.pid == context.pid }
            registry.remove(daemonInfo.address)
            registry.store(new DaemonInfo(daemonInfo.address, daemonInfo.context, "password".bytes, daemonInfo.getState()))
        }
    
        void assertRegistryNotWorldReadable() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  5. build/build-image/rsyncd.sh

    CONFDIR="/tmp/rsync.k8s"
    PIDFILE="${CONFDIR}/rsyncd.pid"
    CONFFILE="${CONFDIR}/rsyncd.conf"
    SECRETS="${CONFDIR}/rsyncd.secrets"
    
    mkdir -p "${CONFDIR}"
    
    if [[ -f "${PIDFILE}" ]]; then
      PID=$(cat "${PIDFILE}")
      echo "Cleaning up old PID file: ${PIDFILE}"
      kill "${PID}" &> /dev/null || true
      rm "${PIDFILE}"
    fi
    
    PASSWORD=$(</rsyncd.password)
    
    cat <<EOF >"${SECRETS}"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 04 15:58:52 UTC 2022
    - 2.2K bytes
    - Viewed (0)
  6. src/cmd/cgo/internal/test/issue1435.go

    // specific status files match expectations.
    func compareStatus(filter, expect string) error {
    	expected := filter + expect
    	pid := syscall.Getpid()
    	fs, err := os.ReadDir(fmt.Sprintf("/proc/%d/task", pid))
    	if err != nil {
    		return fmt.Errorf("unable to find %d tasks: %v", pid, err)
    	}
    	expectedProc := fmt.Sprintf("Pid:\t%d", pid)
    	foundAThread := false
    	for _, f := range fs {
    		tf := fmt.Sprintf("/proc/%s/status", f.Name())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jul 28 21:31:41 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  7. src/os/pidfd_linux.go

    	if !pidfdWorks() {
    		return 0, false
    	}
    
    	return uintptr(*sysAttr.PidFD), true
    }
    
    func pidfdFind(pid int) (uintptr, error) {
    	if !pidfdWorks() {
    		return 0, syscall.ENOSYS
    	}
    
    	h, err := unix.PidFDOpen(pid, 0)
    	if err != nil {
    		return 0, convertESRCH(err)
    	}
    	return h, nil
    }
    
    // _P_PIDFD is used as idtype argument to waitid syscall.
    const _P_PIDFD = 3
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 18:08:44 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  8. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/daemon/DaemonContextParser.java

            } else {
                return null;
            }
        }
    
        @Nullable
        private static DaemonContext parseFrom87(String source) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 30 09:22:54 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  9. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/bootstrap/DaemonStartupCommunication.java

                OutputStream outputStream = new EncodedStream.EncodedOutput(byteArrayOutputStream);
                FlushableEncoder encoder = new OutputStreamBackedEncoder(outputStream);
                encoder.writeNullableString(pid == null ? null : pid.toString());
                encoder.writeString(uid);
                MultiChoiceAddress multiChoiceAddress = (MultiChoiceAddress) address;
                new MultiChoiceAddressSerializer().write(encoder, multiChoiceAddress);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 06:47:38 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  10. src/os/exec_unix_test.go

    	}
    }
    
    // Lookup of a process that does not exist at time of lookup.
    func TestProcessAlreadyDone(t *testing.T) {
    	// Theoretically MaxInt32 is a valid PID, but the chance of it actually
    	// being used is extremely unlikely.
    	pid := math.MaxInt32
    	if runtime.GOOS == "solaris" || runtime.GOOS == "illumos" {
    		// Solaris/Illumos have a lower limit, above which wait returns
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 18:08:44 UTC 2024
    - 2K bytes
    - Viewed (0)
Back to top