Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 87 for subprocess (0.2 sec)

  1. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/CommandExtractor.java

                        teminated = true;
                    } catch (final Exception e) {
                        if (logger.isInfoEnabled()) {
                            logger.info("Could not kill the subprocess.", e);
                        }
                    }
                }
            }
    
            /**
             * @param finished
             *            The finished to set.
             */
    Registered: Wed Jun 12 15:17:51 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  2. src/syscall/exec_unix_test.go

    	cmd = testenv.CleanCmdEnv(cmd)
    	cmd.Env = append(cmd.Env, "GO_WANT_HELPER_PROCESS=1")
    
    	out, err := cmd.CombinedOutput()
    	if len(out) > 0 {
    		t.Logf("%s", out)
    	}
    	if err != nil {
    		t.Fatalf("subprocess failed: %v", err)
    	}
    	s := string(bytes.TrimSpace(out))
    	v, err := strconv.ParseUint(s, 10, 64)
    	if err != nil {
    		t.Fatalf("could not parse %q as number: %v", s, v)
    	}
    
    	if v != uint64(orig.Cur) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 22 04:41:27 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  3. src/syscall/exec_linux_test.go

    			os.Exit(2)
    		}
    		os.Exit(0)
    	}
    
    	testenv.MustHaveExec(t)
    	exe, err := os.Executable()
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	d := t.TempDir()
    	t.Cleanup(func() {
    		// If the subprocess fails to unshare the parent directory, force-unmount it
    		// so that the test can clean it up.
    		if _, err := os.Stat(d); err == nil {
    			syscall.Unmount(d, syscall.MNT_FORCE)
    		}
    	})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 07:45:37 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/telemetry/start.go

    		// Don't start the child.
    		return result
    	}
    
    	var reportCrashes = config.ReportCrashes && crashmonitor.Supported()
    
    	switch v := os.Getenv(telemetryChildVar); v {
    	case "":
    		// The subprocess started by parent has GO_TELEMETRY_CHILD=1.
    		childShouldUpload := config.Upload && acquireUploadToken()
    		if reportCrashes || childShouldUpload {
    			parent(reportCrashes, childShouldUpload, result)
    		}
    	case "1":
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 14:52:56 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  5. src/cmd/go/internal/script/cmds.go

    					return out.String(), "", nil
    				}
    			}
    			return wait, nil
    		})
    }
    
    // Exec runs an arbitrary executable as a subprocess.
    //
    // When the Script's context is canceled, Exec sends the interrupt signal, then
    // waits for up to the given delay for the subprocess to flush output before
    // terminating it with os.Kill.
    func Exec(cancel func(*exec.Cmd) error, waitDelay time.Duration) Cmd {
    	return Command(
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 28.5K bytes
    - Viewed (0)
  6. src/os/exec/exec_test.go

    	ctx, cancel := context.WithCancel(context.Background())
    
    	// This test will spawn nHangs subprocesses that hang reading from stdin,
    	// and nExits subprocesses that exit immediately.
    	//
    	// When issue #61080 was present, a long-lived "hang" subprocess would
    	// occasionally inherit the fork/exec status pipe from an "exit" subprocess,
    	// causing the parent process (which expects to see an EOF on that pipe almost
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 20:13:53 UTC 2024
    - 48.4K bytes
    - Viewed (0)
  7. src/cmd/go/testdata/script/README

    an end-of-line comment. Additional variables named ':' and '/' are expanded
    within script arguments (expanding to the value of os.PathListSeparator and
    os.PathSeparator respectively) but are not inherited in subprocess environments.
    
    Adding single quotes around text keeps spaces in that text from being treated
    as word separators and also disables environment variable expansion. Inside a
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  8. src/os/signal/signal_test.go

    			} else if !ws.Signaled() || ws.Signal() != syscall.SIGINT {
    				t.Errorf("iteration %d: got exit status %v; expected SIGINT", i, ee)
    			}
    		}
    	}
    }
    
    // atomicStopTestProgram is run in a subprocess by TestAtomicStop.
    // It tries to trigger a signal delivery race. This function should
    // either catch a signal or die from it.
    func atomicStopTestProgram(t *testing.T) {
    	// This test won't work if SIGINT is ignored here.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 15:34:56 UTC 2023
    - 27.2K bytes
    - Viewed (0)
  9. src/internal/testenv/testenv.go

    		// means that if we start walking up the tree, we should eventually find
    		// GOROOT/src/go.mod, and we can report the parent directory of that.
    		//
    		// Notably, this works even if we can't run 'go env GOROOT' as a
    		// subprocess.
    
    		cwd, err := os.Getwd()
    		if err != nil {
    			gorootErr = fmt.Errorf("finding GOROOT: %w", err)
    			return
    		}
    
    		dir := cwd
    		for {
    			parent := filepath.Dir(dir)
    			if parent == dir {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 16:41:38 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  10. src/cmd/go/internal/modload/init.go

    	}
    
    	// Disable any ssh connection pooling by Git.
    	// If a Git subprocess forks a child into the background to cache a new connection,
    	// that child keeps stdout/stderr open. After the Git subprocess exits,
    	// os/exec expects to be able to read from the stdout/stderr pipe
    	// until EOF to get all the data that the Git subprocess wrote before exiting.
    	// The EOF doesn't come until the child exits too, because the child
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 18:36:30 UTC 2024
    - 69.8K bytes
    - Viewed (0)
Back to top