- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 12 for PIDs (0.11 sec)
-
pkg/util/procfs/procfs_linux_test.go
} func TestPidOf(t *testing.T) { if runtime.GOOS == "darwin" || runtime.GOOS == "windows" { t.Skipf("not supported on GOOS=%s", runtime.GOOS) } pids, err := PidOf(filepath.Base(os.Args[0])) assert.Empty(t, err) assert.NotZero(t, pids) assert.Contains(t, pids, os.Getpid()) } func TestPKill(t *testing.T) { if runtime.GOOS == "darwin" || runtime.GOOS == "windows" { t.Skipf("not supported on GOOS=%s", runtime.GOOS)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Oct 20 07:13:28 UTC 2022 - 3.1K bytes - Viewed (0) -
pkg/util/procfs/procfs_linux.go
return fmt.Errorf("name should not be empty") } re, err := regexp.Compile(name) if err != nil { return err } pids := getPids(re) if len(pids) == 0 { return fmt.Errorf("unable to fetch pids for process name : %q", name) } errList := []error{} for _, pid := range pids { if err = syscall.Kill(pid, sig); err != nil { errList = append(errList, err) } } return utilerrors.NewAggregate(errList) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jan 16 09:22:35 UTC 2023 - 4.1K bytes - Viewed (0) -
src/cmd/go/testdata/script/test2json_interrupt.txt
go 1.20 -- example_test.go -- package example_test import ( "fmt" "os" "strconv" "testing" "strings" "time" ) func FuzzInterrupt(f *testing.F) { pids := os.Getenv("GO_TEST_INTERRUPT_PIDS") if pids == "" { // This is the main test process. // Set the environment variable for fuzz workers. pid := os.Getpid() ppid := os.Getppid()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Dec 08 03:52:44 UTC 2022 - 1.7K bytes - Viewed (0) -
testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/ProcessFixture.groovy
return result == "" ? [] : result.split("\\n") } // Only supported on *nix platforms String[] getProcessInfo(String[] pids) { if (pids == null || pids.size() == 0) { throw new RuntimeException("Unable to get process info because provided pids are null or empty!") } if (!(OperatingSystem.current().unix)) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 5.6K bytes - Viewed (0) -
pkg/kubelet/stats/pidlimit/pidlimit.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Feb 13 19:56:17 UTC 2019 - 713 bytes - Viewed (0) -
pkg/kubelet/cm/types.go
// foo.slice/foo-bar.slice Name(name CgroupName) string // CgroupName converts the literal cgroupfs name on the host to an internal identifier. CgroupName(name string) CgroupName // Pids scans through all subsystems to find pids associated with specified cgroup. Pids(name CgroupName) []int // ReduceCPULimits reduces the CPU CFS values to the minimum amount of shares. ReduceCPULimits(cgroupName CgroupName) error
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Feb 24 18:21:21 UTC 2023 - 5.4K bytes - Viewed (0) -
build-logic/cleanup/src/main/kotlin/gradlebuild/cleanup/services/DaemonTracker.kt
} private fun cleanUpDaemons() { val alreadyKilled = mutableSetOf<String>() forEachJavaProcess { pid, _ -> suspiciousDaemons.forEach { (suite, pids) -> if (pid in pids && pid !in alreadyKilled) { logger.warn("A process was created in $suite but wasn't shutdown properly. Killing PID $pid") KillLeakingJavaProcesses.pkill(pid)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Jan 08 12:45:57 UTC 2024 - 3.4K bytes - Viewed (0) -
pkg/kubelet/cm/util/cgroups_unsupported.go
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ package util // GetPids gets pids of the desired cgroup func GetPids(cgroupPath string) ([]int, error) { return nil, nil
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 24 19:47:49 UTC 2021 - 732 bytes - Viewed (0) -
pkg/kubelet/cm/cgroup_manager_unsupported.go
return errNotSupported } func (m *unsupportedCgroupManager) MemoryUsage(_ CgroupName) (int64, error) { return -1, errNotSupported } func (m *unsupportedCgroupManager) Pids(_ CgroupName) []int { return nil } func (m *unsupportedCgroupManager) CgroupName(name string) CgroupName { return CgroupName([]string{}) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Feb 24 18:21:21 UTC 2023 - 2.8K bytes - Viewed (0) -
platforms/core-runtime/launcher/src/test/groovy/org/gradle/launcher/daemon/registry/DaemonStopEventsTest.groovy
expect: DaemonStopEvents.uniqueRecentDaemonStopEvents([immediateStop1, immediateStop1]) == [immediateStop1] } def "uniqueRecentDaemonStopEvents() returns most severe event given same PIDs"() { expect: DaemonStopEvents.uniqueRecentDaemonStopEvents([gracefulStop1, immediateStop1]) == [immediateStop1] } def "uniqueRecentDaemonStopEvents() omits stop events older than 1 hour"() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:29:13 UTC 2023 - 2.5K bytes - Viewed (0)