diff options
author | Lennart Poettering <lennart@poettering.net> | 2025-01-11 23:14:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-11 23:14:33 +0100 |
commit | 361327e929f50b917878054bd786319442ed2dfd (patch) | |
tree | 4f1219093ab2bde5405d65471107704f24cf979e /src/machine | |
parent | Extend elf package metadata to pe/coff files (#35681) (diff) | |
parent | namespace-util: port namespace_get_leader() to PidRef (diff) | |
download | systemd-361327e929f50b917878054bd786319442ed2dfd.tar.xz systemd-361327e929f50b917878054bd786319442ed2dfd.zip |
convert more code to PidRef (#35895)
Diffstat (limited to 'src/machine')
-rw-r--r-- | src/machine/machine.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/machine/machine.c b/src/machine/machine.c index def92af242..70714c30b4 100644 --- a/src/machine/machine.c +++ b/src/machine/machine.c @@ -681,7 +681,7 @@ int machine_openpt(Machine *m, int flags, char **ret_peer) { if (!pidref_is_set(&m->leader)) return -EINVAL; - return openpt_allocate_in_namespace(m->leader.pid, flags, ret_peer); + return openpt_allocate_in_namespace(&m->leader, flags, ret_peer); default: return -EOPNOTSUPP; @@ -700,7 +700,7 @@ int machine_open_terminal(Machine *m, const char *path, int mode) { if (!pidref_is_set(&m->leader)) return -EINVAL; - return open_terminal_in_namespace(m->leader.pid, path, mode); + return open_terminal_in_namespace(&m->leader, path, mode); default: return -EOPNOTSUPP; |