Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copy executable Go file to another folder doesn't trigger time.Sleep. #26415

Closed
gios opened this issue Jul 17, 2018 · 1 comment
Closed

Copy executable Go file to another folder doesn't trigger time.Sleep. #26415

gios opened this issue Jul 17, 2018 · 1 comment

Comments

@gios
Copy link

gios commented Jul 17, 2018

What version of Go are you using (go version)?

go version go1.10.2 windows/amd64

Does this issue reproduce with the latest release?

Yes

What operating system and processor architecture are you using (go env)?

Windows 10, windows/amd64

What did you do?

https://play.golang.org/p/hB3OdWlAizD

  1. run this code
  2. close cmd
  3. find the whs.exe file on F: (it could be another disk)
  4. run whs.exe
  5. cmd doesn't sleep

What did you expect to see?

time.Sleep function is triggered.

What did you see instead?

time.Sleep function isn't triggered.

@gios
Copy link
Author

gios commented Jul 17, 2018

I have found an error. I got an error:

The process cannot access the file because it is being used by another process.

@gios gios closed this as completed Jul 17, 2018
@golang golang locked and limited conversation to collaborators Jul 17, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants