diff options
| author | Daniil Baturin <daniil@vyos.io> | 2025-05-20 15:23:07 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-20 15:23:07 +0100 |
| commit | 014a390488aa8d6601f907f8a691878f3583b5e8 (patch) | |
| tree | e03331fc8c2d546f3df4b02df6decb1e590ffb6d /src/vycli.ml | |
| parent | 9c0377200774cf8351dde9e134634aef85381674 (diff) | |
| parent | b50a8d2b1d7af48a66446d71dd3875307cc2b1e0 (diff) | |
| download | vyconf-014a390488aa8d6601f907f8a691878f3583b5e8.tar.gz vyconf-014a390488aa8d6601f907f8a691878f3583b5e8.zip | |
Merge pull request #21 from jestabro/config-context
T7363: Add vyconf aware initialization of Config
Diffstat (limited to 'src/vycli.ml')
| -rw-r--r-- | src/vycli.ml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vycli.ml b/src/vycli.ml index 75e92b5..174d6f4 100644 --- a/src/vycli.ml +++ b/src/vycli.ml @@ -67,7 +67,8 @@ let main socket op path out_format config_format = | _ -> Error (Option.value resp.error ~default:"") |> Lwt.return end | OpSetupSession -> - let%lwt resp = setup_session client "vycli" in + let pid = Int32.of_int (Unix.getppid ()) in + let%lwt resp = setup_session client "vycli" pid in begin match resp with | Ok c -> get_token c |
