Mercurial > hg > rlgwebd
comparison rlgwebd.js @ 167:fba1b34e7554
Rename watcher to dglwatcher.
author | John "Elwin" Edwards |
---|---|
date | Wed, 07 Jan 2015 13:49:37 -0500 |
parents | 59e62710cbb5 |
children | 0ceaca924b4c |
comparison
equal
deleted
inserted
replaced
166:66fef65c34e7 | 167:fba1b34e7554 |
---|---|
722 function startProgressWatcher() { | 722 function startProgressWatcher() { |
723 var watchdirs = []; | 723 var watchdirs = []; |
724 for (var gname in games) { | 724 for (var gname in games) { |
725 watchdirs.push(path.join("/dgldir/inprogress", gname)); | 725 watchdirs.push(path.join("/dgldir/inprogress", gname)); |
726 } | 726 } |
727 var subproc = child_process.spawn("/bin/watcher", watchdirs); | 727 var subproc = child_process.spawn("/bin/dglwatcher", watchdirs); |
728 subproc.stdout.setEncoding('utf8'); | 728 subproc.stdout.setEncoding('utf8'); |
729 subproc.stdout.on('data', function (chunk) { | 729 subproc.stdout.on('data', function (chunk) { |
730 var fname = chunk.slice(2, -1); | 730 var fname = chunk.slice(2, -1); |
731 var filere = /.*\/([^\/]*)\/([^\/:]*):(node:)?(.*)/; | 731 var filere = /.*\/([^\/]*)\/([^\/:]*):(node:)?(.*)/; |
732 var matchresult = fname.match(filere); | 732 var matchresult = fname.match(filere); |