port transferkeys to windows; make stopping in progress transfers work too (probably)
transferkeys had used special FDs for communication, but that would be quite annoying to do in Windows. Instead, use stdin and stdout. But, to avoid commands like rsync stomping on them and messing up the communications channel, they're duplicated to a different handle; stdin is replaced with a null handle, and stdout is replaced with a copy of stderr. This should all work in windows too. Stopping in progress transfers may work on windows.. if the types unify anyway. ;) May need some more porting.
This commit is contained in:
parent
0fbbe79d8f
commit
2fd63f3cfa
6 changed files with 51 additions and 79 deletions
|
@ -17,10 +17,6 @@ now! --[[Joey]]
|
|||
may be unsafe.
|
||||
* `git annex assistant` has not been tested, is probably quite incomplete
|
||||
and/or buggy.
|
||||
* Assistant is known to not transfer any files.
|
||||
(transferrer doesn't built yet)
|
||||
Need a createPipe for windows. See the mkAnonPipe in
|
||||
System.Process source. (cbits/runProcess.c)
|
||||
* No XMPP support (needs a lot of C libraries which are available in
|
||||
cygwin, but pkg-config does not list them once installed).
|
||||
* Doesn't daemonize. Maybe use
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue