scm daemon not releasing handle on work dir of lscm
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
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.
Comments
Karthik Krishnan
May 17 '18, 9:04 a.m.I have seen this behavior with lscm and not scm.exe.
Not sure if usage of SCM.exe is Ok for your use case
Balz Guenat
May 17 '18, 10:41 a.m.SCM.exe would be a hassle.