Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
29 changed files
with
26 additions
and
368 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,6 +1,5 @@ | |||
default: | default: | ||
xcodebuild | xcodebuild | ||
|
|
||
|
|||
clean: | clean: | ||
rm -rf build | rm -rf build |
Binary file not shown.
20 changes: 0 additions & 20 deletions
20
ext/fsevents/build/Release/fsevents-wrapper.dSYM/Contents/Info.plist
This file was deleted.
Oops, something went wrong.
Binary file removed
BIN
-55.1 KB
ext/fsevents/build/Release/fsevents-wrapper.dSYM/Contents/Resources/DWARF/fsevents-wrapper
Binary file not shown.
Binary file removed
BIN
-15 KB
...sevents-wrapper.build/Release/fsevents-wrapper.build/Objects-normal/i386/fsevents-wrapper
Binary file not shown.
1 change: 0 additions & 1 deletion
1
...er.build/Release/fsevents-wrapper.build/Objects-normal/i386/fsevents-wrapper.LinkFileList
This file was deleted.
Oops, something went wrong.
2 changes: 0 additions & 2 deletions
2
...ts/build/fsevents-wrapper.build/Release/fsevents-wrapper.build/Objects-normal/i386/main.d
This file was deleted.
Oops, something went wrong.
Binary file removed
BIN
-220 Bytes
.../build/fsevents-wrapper.build/Release/fsevents-wrapper.build/Objects-normal/i386/main.dia
Binary file not shown.
Binary file removed
BIN
-13.9 KB
...ts/build/fsevents-wrapper.build/Release/fsevents-wrapper.build/Objects-normal/i386/main.o
Binary file not shown.
Binary file removed
BIN
-26.4 KB
...vents-wrapper.build/Release/fsevents-wrapper.build/Objects-normal/x86_64/fsevents-wrapper
Binary file not shown.
1 change: 0 additions & 1 deletion
1
....build/Release/fsevents-wrapper.build/Objects-normal/x86_64/fsevents-wrapper.LinkFileList
This file was deleted.
Oops, something went wrong.
2 changes: 0 additions & 2 deletions
2
.../build/fsevents-wrapper.build/Release/fsevents-wrapper.build/Objects-normal/x86_64/main.d
This file was deleted.
Oops, something went wrong.
Binary file removed
BIN
-220 Bytes
...uild/fsevents-wrapper.build/Release/fsevents-wrapper.build/Objects-normal/x86_64/main.dia
Binary file not shown.
Binary file removed
BIN
-15.4 KB
.../build/fsevents-wrapper.build/Release/fsevents-wrapper.build/Objects-normal/x86_64/main.o
Binary file not shown.
162 changes: 0 additions & 162 deletions
162
ext/fsevents/build/fsevents-wrapper.build/Release/fsevents-wrapper.build/build-state.dat
This file was deleted.
Oops, something went wrong.
162 changes: 0 additions & 162 deletions
162
ext/fsevents/build/fsevents-wrapper.build/Release/fsevents-wrapper.build/build-state~.dat
This file was deleted.
Oops, something went wrong.
Binary file removed
BIN
-793 Bytes
...nts-wrapper.build/Release/fsevents-wrapper.build/fsevents-wrapper-all-target-headers.hmap
Binary file not shown.
Binary file removed
BIN
-121 Bytes
...events-wrapper.build/Release/fsevents-wrapper.build/fsevents-wrapper-generated-files.hmap
Binary file not shown.
Binary file removed
BIN
-793 Bytes
...nts-wrapper.build/Release/fsevents-wrapper.build/fsevents-wrapper-own-target-headers.hmap
Binary file not shown.
Binary file removed
BIN
-894 Bytes
...events-wrapper.build/Release/fsevents-wrapper.build/fsevents-wrapper-project-headers.hmap
Binary file not shown.
6 changes: 0 additions & 6 deletions
6
...fsevents/build/fsevents-wrapper.build/Release/fsevents-wrapper.build/fsevents-wrapper.dep
This file was deleted.
Oops, something went wrong.
Binary file removed
BIN
-1.62 KB
...sevents/build/fsevents-wrapper.build/Release/fsevents-wrapper.build/fsevents-wrapper.hmap
Binary file not shown.
6 changes: 0 additions & 6 deletions
6
...sevents/build/fsevents-wrapper.build/Release/fsevents-wrapper.build/fsevents-wrapper~.dep
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -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) | |||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.