Permalink
Browse files

rearrange for new go tool

  • Loading branch information...
1 parent c9c223f commit 86d1d688f0290dabee66c1f021dfdea49e1adad1 @bradfitz committed Dec 23, 2011
View
@@ -2,6 +2,7 @@
*.6
*.8
_obj
+a.out
danga.com/runsit/runsit
danga.com/runsit/test/daemon/testdaemon
@@ -1,5 +0,0 @@
-include $(GOROOT)/src/Make.inc
-TARG=runsit
-GOFILES=runsit.go watchdir.go web.go
-include $(GOROOT)/src/Make.cmd
-
View
@@ -0,0 +1,32 @@
+/*
+Copyright 2011 Google Inc.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+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 main
+
+import (
+ "os"
+)
+
+func MaybeRunChildProcess() {
+ li := os.Getenv("_RUNSIT_LAUNCH_INFO")
+ if li == "" {
+ return
+ }
+ defer os.Exit(2) // should never make it this far, though
+
+
+}
+
File renamed without changes.
File renamed without changes.
@@ -35,7 +35,7 @@ import (
"sync"
"time"
- "danga.com/runsit/jsonconfig"
+ "github.com/bradfitz/runsit/jsonconfig"
)
// Flags.
@@ -501,6 +501,7 @@ func GetTasks() []*Task {
}
func main() {
+ MaybeRunChildProcess()
flag.Parse()
ln, err := net.Listen("tcp", "localhost:"+strconv.Itoa(*httpPort))
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 86d1d68

Please sign in to comment.