INNER CODE UNIT · Go

init

fengshao1227/ccg-workflow · codeagent-wrapper/main.go:66

func init() {
	forceKillDelay.Store(5) // seconds - default value
}

func isWindows() bool {
	return os.Getenv("OS") == "Windows_NT" || len(os.Getenv("WINDIR")) > 0
}

func runStartupCleanup() {
	if cleanupLogsFn == nil {
		return
	}
	defer func() {
		if r := recover(); r != nil {
			logWarn(fmt.Sprintf("cleanupOldLogs panic: %v", r))
		}
	}()
	if _, err := cleanupLogsFn(); err != nil {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…