1 parent
42eb27823e
commit
d62dd9353f
1 file changed
+1
-6
@@ -242,13 +242,8 @@ func main() {
|
||||
default:
|
||||
checkServer()
|
||||
|
||||
gClientID = 1000
|
||||
gClientID = os.Getpid()
|
||||
gLogPath = filepath.Join(os.TempDir(), fmt.Sprintf("lf.%s.%d.log", gUser.Username, gClientID))
|
||||
for _, err := os.Stat(gLogPath); !os.IsNotExist(err); _, err = os.Stat(gLogPath) {
|
||||
gClientID++
|
||||
gLogPath = filepath.Join(os.TempDir(), fmt.Sprintf("lf.%s.%d.log", gUser.Username, gClientID))
|
||||
}
|
||||
|
||||
switch flag.NArg() {
|
||||
case 0:
|
||||
_, err := os.Getwd()
|
||||
|
||||
Reference in new issue
Block a user