[lxc-devel] [lxd/master] lxd netcat: remove debugging by file creation
tych0 on Github
lxc-bot at linuxcontainers.org
Thu Oct 13 23:57:56 UTC 2016
A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 396 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20161013/1d413dea/attachment.bin>
-------------- next part --------------
From f5e435c8a07d1ea1f96a27639732d489e69c2485 Mon Sep 17 00:00:00 2001
From: Tycho Andersen <tycho.andersen at canonical.com>
Date: Thu, 13 Oct 2016 17:57:13 -0600
Subject: [PATCH] lxd netcat: remove debugging by file creation
Don't mind me, I'm a barbarian.
Signed-off-by: Tycho Andersen <tycho.andersen at canonical.com>
---
lxd/rsync.go | 8 --------
1 file changed, 8 deletions(-)
diff --git a/lxd/rsync.go b/lxd/rsync.go
index 22f2143..6369d1c 100644
--- a/lxd/rsync.go
+++ b/lxd/rsync.go
@@ -198,22 +198,14 @@ func Netcat(args []string) error {
go func() {
io.Copy(os.Stdout, conn)
- f, _ := os.Create("/tmp/done_stdout")
- f.Close()
conn.Close()
- f, _ = os.Create("/tmp/done_close")
- f.Close()
wg.Done()
}()
go func() {
io.Copy(conn, os.Stdin)
- f, _ := os.Create("/tmp/done_stdin")
- f.Close()
}()
- f, _ := os.Create("/tmp/done_spawning_goroutines")
- f.Close()
wg.Wait()
return nil
More information about the lxc-devel
mailing list