support old watchman daemons
commita986ece1e5ca1ba9ef91f9b2d20a260cfe366129
authorFred Emmott <fe@fb.com>
Fri, 12 Nov 2021 18:22:10 +0000 (12 10:22 -0800)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Fri, 12 Nov 2021 18:23:18 +0000 (12 10:23 -0800)
treeba402d8b570478466f10ce37751e76ff542963b2
parente0eaa160f4e954747d95defda56260d407a23a7b
support old watchman daemons

Summary:
This supports older watchman daemons, such as the one included in Ubuntu 20.04

on ubuntu:

```
$ watchman get-sockname
{
    "version": "4.9.0",
    "sockname": "/tmp/ubuntu-state/sock"
}
```

on fb:

```
{
    "version": "20211101",
    "sockname": "/opt/facebook/watchman/var/run/watchman/fredemmott-state/sock",
    "unix_domain": "/opt/facebook/watchman/var/run/watchman/fredemmott-state/sock"
}
```

D32374969 for changing watchman itself in future releases; this patch is applied to the pinned version we use in open source builds of hhvm.

Reviewed By: fanzeyi

Differential Revision: D32376204

fbshipit-source-id: 04bb2ef75bb00d177525382629ab158f0a432d77
third-party/watchman/CMakeLists.txt
third-party/watchman/patches/series [new file with mode: 0644]
third-party/watchman/patches/sockname.patch [new file with mode: 0644]