Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Unable to detach from controlling tty (errno=25 Not a tty)" #280

Open
christianinsert opened this issue Jun 16, 2022 · 3 comments
Open

Comments

@christianinsert
Copy link

I get quite often the error Unable to detach from controlling tty (errno=25 Not a tty). I could not find any documentation about this. What does it mean? Should I be worried? What can I do to fix it?

@asottile
Copy link
Contributor

this message is normal in verbose mode -- it is a debug message showing that it is not attached to a tty

$ echo hi | dumb-init --verbose echo hello
[dumb-init] Unable to detach from controlling tty (errno=25 Inappropriate ioctl for device).
[dumb-init] Child spawned with PID 37933.
[dumb-init] Unable to attach to controlling tty (errno=25 Inappropriate ioctl for device).
[dumb-init] setsid complete.
hello
[dumb-init] Received signal 17.
[dumb-init] A child with PID 37933 exited with exit status 0.
[dumb-init] Forwarded signal 15 to children.
[dumb-init] Child exited with status 0. Goodbye.

@christianinsert
Copy link
Author

Thanks for the info! (If more people get confused about that it might be worth adding to the docs?)

@asottile
Copy link
Contributor

I'm not sure why one would be confused -- it's only there in --verbose mode, it's not messaged as an error, it doesn't terminate the process.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants