Skip to content

flatpak-spawn --host and tcsetpgrp issue #3697

@valentindavid

Description

@valentindavid

Linux distribution and version

GNOME OS master

Flatpak version

Flatpak 1.4.3

Description of the problem

It seems bash has troubles to tcsetprg when spawning host bash with flatpak-spawn --host. This is unexpected since the in source code of HostCommand it should set the console right.

When using debug mode, we get the error:

F: ioctl(0, TIOCSCTTY, 0) failed: Operation not permitted

Maybe setsid and setpgid should not be called in child_setup_func from session-helper/flatpak-session-helper.c if data->set_tty.

Steps to reproduce

bash-5.0$ flatpak run --talk-name=org.freedesktop.Flatpak --command=bash org.freedesktop.Sdk//19.08
bash-5.0$ flatpak-spawn --host bash -i
bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shell
bash-5.0$ 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions