summaryrefslogtreecommitdiff
path: root/src/vtespawn.hh
Commit message (Collapse)AuthorAgeFilesLines
* all: Clean up licence headersChristian Persch2021-01-311-11/+9
| | | | | | | | | | | Unify the licence headers so that all same-licensed files use the exact same text. For some time now, libvte has been effectively LGPL3+ due to newer files being LGPL3+ only while some older files were still nominally LGPL2+ as per their licence headers. Exercise the "or (at your option) any later version" upgrade option to henceforth use, modify and distribute all these files under LGPL3+ only.
* spawn: Async-signal-safety fixesChristian Persch2020-07-181-3/+4
| | | | | | | Ported from https://gitlab.gnome.org/GNOME/glib/-/issues/2140 with some adjustments. Fixes: https://gitlab.gnome.org/GNOME/vte/-/issues/263
* lib: Move utility function to the file of its only callerChristian Persch2020-04-271-8/+0
| | | | | read_ints is only used in spawn.cc, so move it there. Make a note that this code is copied from glib.
* lib: Move fdwalk fallback implementation to its own fileChristian Persch2020-04-271-6/+0
|
* spawn: Rework spawningChristian Persch2020-04-271-10/+22
| | | | | | | | | | | | | | | | | | | | The old spawning code was copied from glib, and used a thread to make the synchronous variant into an asynchronous one. This had the problem that fork(3p) was called from the worker thread, not the calling (main) thread. The new code replaces this with a two-stage approach where the fork takes place on the calling thread, and only the async wait for the child error is done in a worker thread. This also unifies the sync and async spawn variants to use the exact same code, only called in one or two stages. This also removes calls to setenv/unsetenv from the child setup code, which are not safe to do there. Instead, the environment is prepared in advance and used via execve(2). Fixes: https://gitlab.gnome.org/GNOME/vte/-/issues/118
* spawn: Remove unused functionalityChristian Persch2020-04-271-14/+0
|
* pty: spawn: Work around g_spawn_async non-cancellabilityChristian Persch2017-02-031-0/+48
Until glib gets a fully cancelleable spawning API (either for g_spawn_* or GSubprocess), just use a trimmed-down copy of gspawn.c with cancellation added in. https://bugzilla.gnome.org/show_bug.cgi?id=772354