[pbs-devel] [PATCH proxmox 0/2] Use IsTerminal trait

Maximiliano Sandoval R m.sandoval at proxmox.com
Fri Nov 17 13:37:37 CET 2023


Small patch series that ports code to IsTerminal.

Since the functions stdout_isatty and stdin_isatty are used in multiple projects
(e.g. Backup Server and Offline Mirror), the function were just modified to use
the new trait instead of being removed.

Maximiliano Sandoval R (2):
  sys: Use safe wrapper for libc::isatty
  router: Use safe wrapper for libc::isatty

 proxmox-router/src/cli/text_table.rs |  4 ++--
 proxmox-sys/src/linux/tty.rs         | 20 +++++++-------------
 2 files changed, 9 insertions(+), 15 deletions(-)

-- 
2.39.2






More information about the pbs-devel mailing list