diff options
author | Lennart Poettering <lennart@poettering.net> | 2024-07-11 10:54:24 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2024-07-19 11:44:04 +0200 |
commit | 1ca392482765d96c40a4eb207b50df1fac947100 (patch) | |
tree | 454ee77f606dc5dc8b3c34f6e201c04a5f88c1d2 /src/basic/terminal-util.c | |
parent | terminal-util: rename return parameters ret_xyz (diff) | |
download | systemd-1ca392482765d96c40a4eb207b50df1fac947100.tar.xz systemd-1ca392482765d96c40a4eb207b50df1fac947100.zip |
terminal-util: remove terminal_vhangup() because apparently unused
Diffstat (limited to 'src/basic/terminal-util.c')
-rw-r--r-- | src/basic/terminal-util.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/basic/terminal-util.c b/src/basic/terminal-util.c index 14556fa040..698d39d180 100644 --- a/src/basic/terminal-util.c +++ b/src/basic/terminal-util.c @@ -432,16 +432,6 @@ int terminal_vhangup_fd(int fd) { return RET_NERRNO(ioctl(fd, TIOCVHANGUP)); } -int terminal_vhangup(const char *name) { - _cleanup_close_ int fd = -EBADF; - - fd = open_terminal(name, O_RDWR|O_NOCTTY|O_CLOEXEC|O_NONBLOCK); - if (fd < 0) - return fd; - - return terminal_vhangup_fd(fd); -} - int vt_disallocate(const char *name) { const char *e; int r; |