Repository: vscode
Issue: Git - Lots of vscode socket files left in /tmp when using SSH
Labels: bug,git


Issue Type: <b>Bug</b>

I'm using SSH to connect to a remote linux machine. VSCode seems to leave lots of stray socket files in /tmp. They just pile up and are never deleted:

ls -l /tmp |grep valankar |grep vscode
srwxr-xr-x  1 valankar      valankar            0 Jun 27 12:26 vscode-git-2c82692639.sock
srwxr-xr-x  1 valankar      valankar            0 Jun 27 11:38 vscode-git-4af5b47f89.sock
srwxr-xr-x  1 valankar      valankar            0 Jun 27 10:57 vscode-git-7f63ea485e.sock
srwx------  1 valankar      valankar            0 Jun 27 07:07 vscode-git-b7f434d83e.sock
srwx------  1 valankar      valankar            0 Jun 27 07:10 vscode-git-f352e1271b.sock
srwx------  1 valankar      valankar            0 Jun 27 07:10 vscode-ipc-3452dc79-8273-43b7-85fa-75d1896e6501.sock
srwxr-xr-x  1 valankar      valankar            0 Jun 27 10:50 vscode-ipc-38988c79-7158-4bbe-9d28-424d0251ddea.sock
srwxr-xr-x  1 valankar      valankar            0 Jun 27 11:38 vscode-ipc-6249f12c-1d64-491c-ae04-9942cb82fd61.sock
srwxr-xr-x  1 valankar      valankar            0 Jun 27 10:57 vscode-ipc-77bf6c0a-5764-4fca-bd4e-4122ef68d6e5.sock
srwxr-xr-x  1 valankar      valankar            0 Jun 27 12:41 vscode-ipc-794d98f4-2e68-489a-9594-82709efb3446.sock
srwx------  1 valankar      valankar            0 Jun 27 07:07 vscode-ipc-7e5a2912-ca83-4a10-810c-e228e07faabd.sock
srwxr-xr-x  1 valankar      valankar            0 Jun 27 11:18 vscode-ipc-aeb2a3e1-0fb2-4146-a413-a84347a2d161.sock
srwxr-xr-x  1 valankar      valankar            0 Jun 27 12:26 vscode-ipc-e20cc780-b659-4711-92c8-26f84e842c88.sock
drwx------  3 valankar      valankar           60 Jun 27 12:31 vscode-typescript2014

Another question I have is why they are world-readable. This is a multi-user system and I'd like to make sure having them world-readable doesn't cause any security issue. Maybe they shouldn't be readable?

In addition, there are always pyright directories leftover in /tmp:

ls -l /tmp |grep valankar |grep pyright
drwx------  2 valankar      valankar           40 Jun 27 10:58 pyright-1108-4eXhlR1576pW
drwx------  2 valankar      valankar           40 Jun 27 07:08 pyright-13196-UzCoKrG76KHm
drwx------  2 valankar      valankar           40 Jun 27 10:58 pyright-21445-OfhS5uakLVYp
drwx------  2 valankar      valankar           60 Jun 27 12:41 pyright-22205-OWow3WzuEdhf
drwx------  2 valankar      valankar           40 Jun 27 12:27 pyright-22205-Wj2MN5bMB6FT
drwx------  2 valankar      valankar           40 Jun 27 11:48 pyright-23401-2mDQKPQAFNyY
drwx------  2 valankar      valankar           40 Jun 27 11:46 pyright-26761-81g1XOme5Nbx
drwx------  2 valankar      valankar           40 Jun 27 12:11 pyright-29015-HtStEkPceokg
drwx------  2 valankar      valankar           40 Jun 27 11:18 pyright-30367-gI2m25deYIaM
drwx------  2 valankar      valankar           40 Jun 27 07:10 pyright-31142-0Fxmght4wPsn
drwx------  2 valankar      valankar           40 Jun 27 10:51 pyright-31633-uUwTgT3G9iqH



VS Code version: Code 1.68.1 (30d9c6cd9483b2cc586687151bcbcd635f373630, 2022-06-14T12:48:58.283Z)
OS version: Windows_NT x64 10.0.19044
Restricted Mode: No
Remote OS version: Linux x64 4.19.123-feral

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|Intel(R) Core(TM) i9-10900K CPU @ 3.70GHz (20 x 3696)|
|GPU Status|2d_canvas: enabled<br>canvas_oop_rasterization: disabled_off<br>direct_rendering_display_compositor: disabled_off_ok<br>gpu_compositing: enabled<br>multiple_raster_threads: enabled_on<br>oop_rasterization: enabled<br>opengl: enabled_on<br>rasterization: enabled<br>raw_draw: disabled_off_ok<br>skia_renderer: enabled_on<br>video_decode: enabled<br>video_encode: enabled<br>vulkan: disabled_off<br>webgl: enabled<br>webgl2: enabled|
|Load (avg)|undefined|
|Memory (System)|63.94GB (54.21GB free)|
|Process Argv|--crash-reporter-id a5cf982e-4978-4436-82f9-b4a254aa9487|
|Screen Reader|no|
|VM|0%|

|Item|Value|
|---|---|
|Remote|SSH: pontus.feralhosting.com|
|OS|Linux x64 4.19.123-feral|
|CPUs|Intel(R) Xeon(R) CPU E5-2630L 0 @ 2.00GHz (24 x 2299)|
|Memory (System)|125.87GB (1.12GB free)|
|VM|0%|
</details><details><summary>Extensions (10)</summary>

Extension|Author (truncated)|Version
---|---|---
jupyter-keymap|ms-|1.0.0
remote-ssh|ms-|0.82.1
remote-ssh-edit|ms-|0.80.0
vscode-edit-csv|jan|0.7.1
python|ms-|2022.8.0
vscode-pylance|ms-|2022.6.30
jupyter|ms-|2022.5.1001601848
jupyter-keymap|ms-|1.0.0
jupyter-renderers|ms-|1.0.8
vscodeintellicode|Vis|1.2.21


</details><details>
<summary>A/B Experiments</summary>

```
vsliv368cf:30146710
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
pythonvspyl392:30443607
vserr242cf:30382550
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
pythondataviewer:30285071
vscod805cf:30301675
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593cf:30376535
vsc1dst:30438360
pythonvs932:30410667
wslgetstarted:30449410
vscscmwlcmt:30465135
cppdebug:30492333
vsclangdf:30486550

```

</details>

<!-- generated by issue reporter -->