Files
libguestfs/lib
Laszlo Ersek bd3e033e08 lib: introduce guestfs_int_make_pid_path()
Introduce a small function for creating pathnames for PID files.

guestfs_int_make_pid_path() is something of an amalgamation of
guestfs_int_make_temp_path() [1] and guestfs_int_create_socketname() [2]:

- it creates a pathname under sockdir, like [2],

- it uses the handle's unique counter, like [1],

- it takes a name like both [1] and [2], but the name is not size-limited
  like in [2], plus we hardcode the suffix from [1] as ".pid".

Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2184967
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Richard W.M. Jones <rjones@redhat.com>
Message-Id: <20230714132213.96616-7-lersek@redhat.com>
2023-07-14 17:57:19 +02:00
..
2023-02-07 10:50:48 +00:00
2023-02-07 10:50:48 +00:00
2017-01-26 15:05:46 +00:00
2023-02-07 10:50:48 +00:00
2023-02-07 10:50:48 +00:00
2023-02-07 10:50:48 +00:00
2021-04-08 11:12:17 +01:00
2023-02-07 10:50:48 +00:00
2023-07-14 17:57:15 +02:00
2017-01-26 15:05:46 +00:00
2023-02-07 10:50:48 +00:00
2023-02-07 10:50:48 +00:00
2017-01-26 15:05:46 +00:00
2021-04-08 11:12:17 +01:00
2023-02-07 10:50:48 +00:00
2023-02-07 10:50:48 +00:00
2022-12-02 10:16:57 +00:00
2023-02-07 10:50:48 +00:00
2023-02-07 10:50:48 +00:00
2023-02-07 10:50:48 +00:00
2023-02-07 10:50:48 +00:00
2017-01-26 15:05:46 +00:00
2022-08-16 15:42:30 +01:00
2017-01-26 15:05:46 +00:00
2023-02-07 10:50:48 +00:00
2017-01-26 15:05:46 +00:00
2023-02-07 10:50:48 +00:00