diff options
| author | David Gibson <david@gibson.dropbear.id.au> | 2026-05-12 15:52:53 +1000 |
|---|---|---|
| committer | Stefano Brivio <sbrivio@redhat.com> | 2026-05-16 15:47:04 +0200 |
| commit | 1254a1f9f9867a9d9022e709549388d9cdf4f7b4 (patch) | |
| tree | b65e7091fdc5e730596f09f2dad80cb2db73b25f /contrib/qemu | |
| parent | a2a2f404a7b6aa44f166006dbd85207b2727248d (diff) | |
| download | passt-1254a1f9f9867a9d9022e709549388d9cdf4f7b4.tar passt-1254a1f9f9867a9d9022e709549388d9cdf4f7b4.tar.gz passt-1254a1f9f9867a9d9022e709549388d9cdf4f7b4.tar.bz2 passt-1254a1f9f9867a9d9022e709549388d9cdf4f7b4.tar.lz passt-1254a1f9f9867a9d9022e709549388d9cdf4f7b4.tar.xz passt-1254a1f9f9867a9d9022e709549388d9cdf4f7b4.tar.zst passt-1254a1f9f9867a9d9022e709549388d9cdf4f7b4.zip | |
passt-repair: Split out inotify handling to its own function
passt-repair can operate two ways: either it can be given an explicit
socket path to connect to, or it can be given a directory. In the second
mode, it will wait for a socket to appear in that directory before
connecting to it.
That waiting involves some inotify logic that is essentially unrelated to
the rest of the code. However, it's currently inline in main() making that
very long. Moreover, the block handling inotify shadows several variables
used in the rest of main() which will make static checkers complain once
we get them running on passt-repair.
Address this by moving the inotify handling into its own function.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'contrib/qemu')
0 files changed, 0 insertions, 0 deletions
