scm daemon not releasing handle on work dir of lscm
When I execute an lscm command (e.g. lscm --version) in some working directory, the spawned scm.exe daemon obtains a file handle on that working directory which it does not release, preventing the deletion of that directory.
Is this behavior intended? If yes, why?
|
One answer
'lscm' keeps the daemon running, which is why it is more performant than using 'scm'. At the end of your script (if you are done with the 'lscm' commands / done working with the current sandbox), you could try the 'daemon stop' command and see if that frees up the locks you are seeing.
Comments
Balz Guenat
commented Jun 18 '18, 2:51 a.m.
Thanks for the answer. This is what I've been going with thus far but I consider it a workaround.
I get why the daemon keeps running but I see no reason why it should be keeping these file handles. Furthermore, making it the build script's responsibility to stop the daemon isn't very elegant, considering that it shouldn't even "know" that lscm is being called.
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.
Comments
I have seen this behavior with lscm and not scm.exe.
Not sure if usage of SCM.exe is Ok for your use case
SCM.exe would be a hassle.