summaryrefslogtreecommitdiff
path: root/src/libply/ply-terminal-session.c
AgeCommit message (Collapse)AuthorFilesLines
2020-03-07terminal-session: Drop unnecessary grantpt() call.Zhao Qiang1-10/+0
plymouth calls `grantpt()` when setting up the pseudoterminal it uses for boot logging and console broadcasting. `grantpt()` traditionally sets up the access permissions and file mode of the created slave pseudoterminal device node. That call is unnecessary for two reasons: 1. The kernel automatically sets up the correct permissions at open time on modern Linux. 2. plymouthd runs as root anyway Furthermore, it seems like, for some unknown reason, the call may be interfering with the shutdown process. This commit drops the call, since it's unnecessary, and potentially even problematic.
2019-07-15ply terminal session: Drop function ply_terminal_session_execute andZhaoQiang1-58/+0
ply_terminal_session_open_console, Since this is a feature from a bygone time which is no longer in use without ply_terminal_session_run.
2019-07-11ply terminal session: Drop ply_terminal_session_run, this is a feature from ↵ZhaoQiang1-74/+0
a bygone time which is no longer in use
2017-05-11terminal-session: don't delete boot.log0.9.3Ray Strode1-1/+0
We want to append to it now.
2017-05-11Revert "Make boot.log world readable by default"Ray Strode1-1/+1
This reverts commit fc5cd88767db61805519fef53182386ba56c6405. It's better to let the admin of the system decide the permissions, than forcefully change them.
2014-05-20ReindentRay Strode1-370/+355
I don't like the GNU coding style and I'm not sure why I chose it. This commit changes things over to use 8 space tabs and 'if () {' style braces.
2013-12-03tests: drop for nowRay Strode1-53/+0
They're fairly bitrotten, don't tie into make check, and aren't that useful. Drop them for now, until we can come up with a better story.
2013-06-10terminal-session: don't close ptmx unless it's openedRay Strode1-1/+2
This prevents a scary close(-1) in straces.
2013-06-10terminal-session: plug /dev/console fd leakRay Strode1-1/+5
When we stop redirecting console messages, we temporarly open /dev/console. We don't ever close it. This commit fixes that.
2010-09-26terminal-session: add debug messagesRay Strode1-0/+5
2010-09-26terminal-session: try to continue logging after tty disconnectRay Strode1-1/+20
Currently, we give up on boot logging after a tty disconnect. This commit makes the terminal session reattach to the tty, and continue logging.
2010-09-26terminal-session: rename "session_done" to "session_hangup"Ray Strode1-14/+14
In truth, we can get hangups at any time during boot. It doesn't mean the session is done, so use better terminology.
2009-09-28[libply] Drop terminal classRay Strode1-14/+57
It was a really lame small wrapper around creating pseudoterminals. The wrapper didn't buy anything and the name ply-terminal would be better used for managing tty settings, etc.
2009-03-19Make sure to clean up ptm when detachingRay Strode1-0/+10
Otherwise we hit an assert next time we attach
2009-03-05Allow -1 to get passed to ply-terminal-sessionRay Strode1-2/+14
This is coming from the drop-nash branch. It lets the caller of plymouth not have to create a pty master.
2009-02-26remove spurious disabling of console redirectionWilliam Jon McCann1-1/+0
Revert accidental commit from: 6b9011d164201951af27f65163519b194d301572
2008-11-10Rework how terminals are disconnected from ttyRay Strode1-9/+46
It was causing some problems on hide-splash before that should be better now.
2008-11-08Revert "Merge branch 'master' of ssh://git.freedesktop.org/git/plymouth"Charles Brej1-46/+9
This reverts commit 65aae81e942f63f075e08910f2e8fb0a2b2c3230.
2008-11-06unredirect console messages terminal-sessionRay Strode1-9/+46
Previously, we did it manually using the ioctl straight from main.c. Now, there's a ply_terminal_session_detach call that does it for us. This allows us to detach from the terminal during --hide-splash, and reattach during --show-splash
2008-10-08New nolog option to disable console redirectionRay Strode1-0/+1
It seems like there may be cases where it's better to not do the whole TIOCCONS song and dance. This provides an escape hatch.
2008-08-12if an error happens during boot up spool it for the viewerRay Strode1-0/+1
We store a link to the boot log in /var/spool/plymouth so that the viewer can detect if boot up failed. It will do this by checking if /var/log/boot.log and /var/spool/plymouth/boot.log are the same file
2008-08-12Make boot.log world readable by defaultRay Strode1-1/+1
Before we were only making it readable by root, but that doesn't make sense. It's not secret information or anything.
2008-06-04Get rid of everything about directory switching and PLY_WORKING_DIRECTORY.Peter Jones1-14/+0
2008-06-03Add ply_terminal_session_attach()Peter Jones1-6/+50
Make ply_terminal_session_new() not require argv.
2008-05-19Add hook to ply-terminal-session to notify on boot output.Ray Strode1-14/+11
Drop set_output_buffer api and propagate boot output to splash plugins
2008-05-19add hook to log all terminal session output to a user supplied bufferRay Strode1-0/+11
2007-10-21call chroot right before exec instead of right after forkRay Strode1-0/+11
This is because we still need access to /dev/pts/1 until right before exec
2007-06-21dump everything i'm working on into the main refactor branch for nowRay Strode1-3/+24
2007-06-06split the common code off into libply and move things to separate directoriesRay Strode1-0/+441