[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [meek/master] Remove unused logKill and logSignal.



commit ee71a6ad9f5c681d97255f2f0dc7875b843aefd0
Author: David Fifield <david@xxxxxxxxxxxxxxx>
Date:   Thu Apr 18 23:18:54 2019 -0600

    Remove unused logKill and logSignal.
---
 meek-client-torbrowser/meek-client-torbrowser.go | 20 --------------------
 1 file changed, 20 deletions(-)

diff --git a/meek-client-torbrowser/meek-client-torbrowser.go b/meek-client-torbrowser/meek-client-torbrowser.go
index 1274327..7c304ea 100644
--- a/meek-client-torbrowser/meek-client-torbrowser.go
+++ b/meek-client-torbrowser/meek-client-torbrowser.go
@@ -56,26 +56,6 @@ type ptCmd struct {
 	StdinCloser io.WriteCloser
 }
 
-// Log a call to os.Process.Kill.
-func logKill(p *os.Process) error {
-	log.Printf("killing PID %d", p.Pid)
-	err := p.Kill()
-	if err != nil {
-		log.Print(err)
-	}
-	return err
-}
-
-// Log a call to os.Process.Signal.
-func logSignal(p *os.Process, sig os.Signal) error {
-	log.Printf("sending signal %s to PID %d", sig, p.Pid)
-	err := p.Signal(sig)
-	if err != nil {
-		log.Print(err)
-	}
-	return err
-}
-
 func copyFile(srcPath string, mode os.FileMode, destPath string) error {
 	inFile, err := os.Open(srcPath)
 	if err != nil {



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits