Skip to content

Commit

Permalink
Removed generated files
Browse files Browse the repository at this point in the history
  • Loading branch information
burke committed Aug 31, 2012
1 parent 6428b4b commit c9640df
Show file tree
Hide file tree
Showing 29 changed files with 26 additions and 368 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Expand Up @@ -21,5 +21,6 @@ build/*
man/build/* man/build/*
rubygem/man/* rubygem/man/*
rubygem/build/* rubygem/build/*
zeusversion/zeusversion.go go/zeusversion/zeusversion.go
.DS_Store .DS_Store
ext/fsevents/build/*
1 change: 0 additions & 1 deletion ext/fsevents/Makefile
@@ -1,6 +1,5 @@
default: default:
xcodebuild xcodebuild



clean: clean:
rm -rf build rm -rf build
Binary file removed ext/fsevents/build/Release/fsevents-wrapper
Binary file not shown.

This file was deleted.

Binary file not shown.
Binary file not shown.

This file was deleted.

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.

This file was deleted.

This file was deleted.

Binary file not shown.
Binary file not shown.

This file was deleted.

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

This file was deleted.

Binary file not shown.

This file was deleted.

1 change: 0 additions & 1 deletion ext/fsevents/main.m
Expand Up @@ -3,7 +3,6 @@
#include <sys/stat.h> #include <sys/stat.h>
#include <fcntl.h> #include <fcntl.h>



static CFMutableArrayRef _watchedFiles; static CFMutableArrayRef _watchedFiles;
static FSEventStreamRef _activeStream; static FSEventStreamRef _activeStream;
static NSMutableDictionary *_fileIsWatched; static NSMutableDictionary *_fileIsWatched;
Expand Down
23 changes: 23 additions & 0 deletions go/zeusmaster/filemonitor.go
@@ -1,12 +1,35 @@
package zeusmaster package zeusmaster


import "fmt"

type fileNotification struct {
identifier string
file string
}

var files chan *fileNotification

func StartFileMonitor(tree *ProcessTree, quit chan bool) { func StartFileMonitor(tree *ProcessTree, quit chan bool) {
// this is obscenely large, just because as long as we start
// watching the files eventually, it's more of a priority to
// get the slaves booted as quickly as possible.
files = make(chan *fileNotification, 5000)


for { for {
select { select {
case <- quit: case <- quit:
quit <- true quit <- true
return return
case notif := <- files:
go handleFileNotification(notif.identifier, notif.file)
} }
} }
} }

func AddFile(identifier, file string) {
files <- &fileNotification{identifier, file}
}

func handleFileNotification(identifier, file string) {
fmt.Println(identifier, file)
}
3 changes: 0 additions & 3 deletions go/zeusversion/zeusversion.go

This file was deleted.

1 change: 1 addition & 0 deletions rubygem/.gitignore
Expand Up @@ -17,3 +17,4 @@ test/version_tmp
tmp tmp
lib/zeus/version.rb lib/zeus/version.rb
MANIFEST MANIFEST
ext/fsevents-wrapper/fsevents-wrapper
Binary file removed rubygem/ext/fsevents-wrapper/fsevents-wrapper
Binary file not shown.

0 comments on commit c9640df

Please sign in to comment.