Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 805 for proc (0.04 sec)

  1. src/cmd/go/internal/generate/generate_test.go

    }
    
    func TestGenerateCommandParse(t *testing.T) {
    	dir := filepath.Join(testenv.GOROOT(t), "src", "sys")
    	g := &Generator{
    		r:        nil, // Unused here.
    		path:     filepath.Join(dir, "proc.go"),
    		dir:      dir,
    		file:     "proc.go",
    		pkg:      "sys",
    		commands: make(map[string][]string),
    	}
    	g.setEnv()
    	g.setShorthand([]string{"-command", "yacc", "go", "tool", "yacc"})
    	for _, test := range splitTests {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 20 14:09:12 UTC 2022
    - 7.4K bytes
    - Viewed (0)
  2. src/syscall/syscall_ptrace_test.go

    	if err != nil {
    		t.Skipf("skipped because sh is not available")
    	}
    
    	attr := &os.ProcAttr{
    		Sys: &syscall.SysProcAttr{
    			Ptrace: true,
    		},
    	}
    	proc, err := os.StartProcess(bin, []string{bin}, attr)
    	if err == nil {
    		proc.Kill()
    	}
    	if err != nil && !os.IsPermission(err) {
    		t.Fatalf("StartProcess with ptrace enabled failed: %v", err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 768 bytes
    - Viewed (0)
  3. src/internal/trace/order.go

    		return fmt.Errorf("expected no thread but had one")
    	}
    
    	// Check proc requirements.
    	if reqs.Proc == event.MustHave && ctx.P == NoProc {
    		return fmt.Errorf("expected a proc but didn't have one")
    	} else if reqs.Proc == event.MustNotHave && ctx.P != NoProc {
    		return fmt.Errorf("expected no proc but had one")
    	}
    
    	// Check goroutine requirements.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:25 UTC 2024
    - 52.4K bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/test/buildid_linux.go

    // one.
    
    import (
    	"bytes"
    	"debug/elf"
    	"os"
    	"testing"
    )
    
    func testBuildID(t *testing.T) {
    	f, err := elf.Open("/proc/self/exe")
    	if err != nil {
    		if os.IsNotExist(err) {
    			t.Skip("no /proc/self/exe")
    		}
    		t.Fatal("opening /proc/self/exe: ", err)
    	}
    	defer f.Close()
    
    	c := 0
    sections:
    	for i, s := range f.Sections {
    		if s.Type != elf.SHT_NOTE {
    			continue
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  5. cluster/log-dump/log-dump.sh

        # take much longer than the others, but it should help.
        proc=$((proc - 1))
        if [[ proc -eq 0 ]]; then
          proc=${max_dump_processes}
          wait
        fi
      done
      # Wait for any remaining processes.
      if [[ proc -gt 0 && proc -lt ${max_dump_processes} ]]; then
        wait
      fi
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 21:15:57 UTC 2024
    - 28.9K bytes
    - Viewed (0)
  6. subprojects/core/src/integTest/groovy/org/gradle/process/internal/WorkerProcessIntegrationTest.groovy

                builder.javaCommand.jvmArgs(jvmArgs)
    
                proc = builder.build()
                try {
                    proc.start()
                    assertFalse(startFails)
                } catch (ExecException e) {
                    if (!startFails) {
                        throw new AssertionError(e)
                    }
                    return
                }
                proc.connection.addIncoming(TestListenerInterface.class, exceptionListener)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 20 11:15:22 UTC 2023
    - 13.3K bytes
    - Viewed (0)
  7. cni/pkg/nodeagent/netns_linux_test.go

    // limitations under the License.
    
    package nodeagent
    
    import "testing"
    
    func TestOpenNetns(t *testing.T) {
    	ns, err := OpenNetns("/proc/self/ns/net")
    	if err != nil {
    		t.Fatalf("unexpected error: %v", err)
    	}
    	// the inode for netns is proc dynamic, so it needs to be higher than
    	// #define PROC_DYNAMIC_FIRST 0xF0000000U
    
    	if ns.Inode() < 0xF0000000 {
    		t.Fatalf("unexpected inode: %v", ns.Inode())
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 26 20:34:28 UTC 2024
    - 976 bytes
    - Viewed (0)
  8. src/internal/syscall/windows/exec_windows_test.go

    			return nil, e
    		}
    	}
    }
    
    func getIntegrityLevelToken(wns string) (syscall.Token, error) {
    	var procToken, token syscall.Token
    
    	proc, err := syscall.GetCurrentProcess()
    	if err != nil {
    		return 0, err
    	}
    	defer syscall.CloseHandle(proc)
    
    	err = syscall.OpenProcessToken(proc,
    		syscall.TOKEN_DUPLICATE|
    			syscall.TOKEN_ADJUST_DEFAULT|
    			syscall.TOKEN_QUERY|
    			syscall.TOKEN_ASSIGN_PRIMARY,
    		&procToken)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 05 23:35:29 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  9. pkg/util/procfs/procfs_linux.go

    			pid, err := strconv.Atoi(entry.Name())
    			if err != nil {
    				continue
    			}
    
    			cmdline, err := os.ReadFile(filepath.Join("/proc", entry.Name(), "cmdline"))
    			if err != nil {
    				klog.V(4).Infof("Error reading file %s: %+v", filepath.Join("/proc", entry.Name(), "cmdline"), err)
    				continue
    			}
    
    			// The bytes we read have '\0' as a separator for the command line
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jan 16 09:22:35 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  10. internal/mountinfo/mountinfo.go

    package mountinfo
    
    // mountInfo - This represents a single line in /proc/mounts.
    type mountInfo struct {
    	Device  string
    	Path    string
    	FSType  string
    	Options []string
    	Freq    string
    	Pass    string
    }
    
    func (m mountInfo) String() string {
    	return m.Path
    }
    
    // mountInfos - This represents the entire /proc/mounts.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Aug 19 01:35:22 UTC 2021
    - 1.1K bytes
    - Viewed (0)
Back to top