Page 1 of 1

SbieSvc Cleanup

Posted: Thu Aug 17, 2017 10:57 am
by Syrinx
Related to the Lingering SbieSvc thread I had going.

Might it be possible for SbieCtrl or some other component to check for a related SbieSvc.exe (eg by boxname) in the wait state and send a terminate command when the related box is empty or in the closing/deleting phase?

These lingering instances have the same username as that which the program was launched with. As such I don't guess there should be many potential permission issues. This would allow the behavior to remain the same, so that such processes aren't being created and killed constantly, but also allow Sandboxie to cleanup after itself in this scenario as it normally does in others.

Update: Thought about this a bit more and realized I could sortof do this myself already. While it'd be nice for sandboxie to do the check itself to properly clean up...I created some small .bat files and added them under DeleteCommand= for the trouble boxes. I can finally have a clean system with no lingering SbieSvcs or needing to manually check for and kill them.

Example:

Code: Select all

rmdir %1 /q /s
wmic process where "commandline like '%%_DefaultBox_%%'" call terminate

Re: SbieSvc Cleanup

Posted: Thu Aug 17, 2017 3:25 pm
by Syrinx
Was hoping to edit but it has timed out. I decided on a slightly more detailed one instead just as a precaution:

Code: Select all

rmdir %1 /q /s
wmic process where "commandline like '%%Sandboxie_ComProxy_%%_DefaultBox_%%'" call terminate
P.S: Is there a DenialOfService attack under way or something? I keep getting an sql error (Too many connections [1040]) and even when it does load it is slow!

Re: SbieSvc Cleanup

Posted: Thu Aug 17, 2017 5:14 pm
by Barb@Invincea
Syrinx,

Thank you for the contribution.
I will pass it along to the devs and we'll update this thread if anything comes up.

Regards,
Barb.-

PS: We were having some issues with the server, but they were corrected and the forums should be working fine now.

Re: SbieSvc Cleanup

Posted: Thu Aug 17, 2017 9:05 pm
by Syrinx
Drunk TRANSLATION..muahaha: []

Syrinx, [Yo]

Thank you for the contribution. [LEAVE US ALONE, geez]
I will pass it along to the devs and we'll update this thread if anything comes up. [We're going to try and ignore you while attempting to be polite about it.]

Regards, [haha what did you expect fool]
Barb.-

PS: We were having some issues with the server, but they were corrected and the forums should be working fine now. [You weren't supposed to see that so just shut up and act like it didn't happen.]