- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for CheckPidfdOnce (0.14 sec)
-
src/os/export_linux_test.go
// license that can be found in the LICENSE file. package os var ( PollCopyFileRangeP = &pollCopyFileRange PollSpliceFile = &pollSplice GetPollFDAndNetwork = getPollFDAndNetwork CheckPidfdOnce = checkPidfdOnce ) const StatusDone = statusDone func (p *Process) Status() processStatus { return processStatus(p.state.Load() & processStatusMask)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 22:06:47 UTC 2024 - 473 bytes - Viewed (0) -
src/os/pidfd_linux.go
return errors.New("os: process already released") } defer p.handleTransientRelease() return convertESRCH(unix.PidFDSendSignal(handle, s)) } func pidfdWorks() bool { return checkPidfdOnce() == nil } var checkPidfdOnce = sync.OnceValue(checkPidfd) // checkPidfd checks whether all required pidfd-related syscalls work. // This consists of pidfd_open and pidfd_send_signal syscalls, and waitid
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 11 18:08:44 UTC 2024 - 4.2K bytes - Viewed (0) -
src/os/pidfd_linux_test.go
package os_test import ( "errors" "internal/testenv" "os" "syscall" "testing" ) func TestFindProcessViaPidfd(t *testing.T) { testenv.MustHaveGoBuild(t) t.Parallel() if err := os.CheckPidfdOnce(); err != nil { // Non-pidfd code paths tested in exec_unix_test.go. t.Skipf("skipping: pidfd not available: %v", err) } p, err := os.StartProcess(testenv.GoToolPath(t), []string{"go"}, &os.ProcAttr{})
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 11 18:08:44 UTC 2024 - 1.6K bytes - Viewed (0)