mirror of
https://gitlab.freedesktop.org/plymouth/plymouth.git
synced 2026-05-07 21:18:05 +02:00
Make ply_terminal_set_fd() update terminal->name .
This commit is contained in:
parent
38170ab182
commit
4c1b2fc6b7
1 changed files with 9 additions and 0 deletions
|
|
@ -140,6 +140,15 @@ ply_terminal_set_fd (ply_terminal_t *terminal, int fd)
|
|||
assert (terminal != NULL);
|
||||
|
||||
terminal->fd = fd;
|
||||
|
||||
if (terminal->name)
|
||||
{
|
||||
free(terminal->name);
|
||||
terminal->name = NULL;
|
||||
}
|
||||
|
||||
if (terminal->fd >= 0)
|
||||
terminal->name = strdup (ptsname (terminal->fd));
|
||||
}
|
||||
|
||||
const char *
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue