Age | Commit message (Collapse) | Author | |
---|---|---|---|
2015-03-27 | fix gcc warnings about uninitialized variables | Harald Hoyer | |
like: src/shared/install.c: In function ‘unit_file_lookup_state’: src/shared/install.c:1861:16: warning: ‘r’ may be used uninitialized in this function [-Wmaybe-uninitialized] return r < 0 ? r : state; ^ src/shared/install.c:1796:13: note: ‘r’ was declared here int r; ^ | |||
2015-02-23 | remove unused includes | Thomas Hindoe Paaboel Andersen | |
This patch removes includes that are not used. The removals were found with include-what-you-use which checks if any of the symbols from a header is in use. | |||
2014-12-11 | tree-wide: use our memset() macros instead of memset() itself | Lennart Poettering | |
2014-07-17 | test-pty: silence a warning | Thomas Hindoe Paaboel Andersen | |
2014-07-17 | shared: add PTY helper | David Herrmann | |
This Pty API wraps the ugliness that is POSIX PTY. It takes care of: - edge-triggered HUP handling (avoid heavy CPU-usage on vhangup) - HUP vs. input-queue draining (handle HUP _after_ draining the whole input queue) - SIGCHLD vs. HUP (HUP is no reliable way to catch PTY deaths, always use SIGCHLD. Otherwise, vhangup() and friends will break.) - Output queue buffering (async EPOLLOUT handling) - synchronous setup (via Barrier API) At the same time, the PTY API does not execve(). It simply fork()s and leaves everything else to the caller. Usually, they execve() but we support other setups, too. This will be needed by multiple UI binaries (systemd-console, systemd-er, ...) so it's placed in src/shared/. It's not strictly related to libsystemd-terminal, so it's not included there. |