mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
spawn: add optional reaper callback, return pid_t
This will allow spawn() callers to do things when the spawned process has terminated.
This commit is contained in:
parent
57af75f988
commit
a42f990818
6 changed files with 26 additions and 19 deletions
|
|
@ -74,8 +74,9 @@ spawn_url_launcher_with_token(struct terminal *term,
|
|||
(const char *[]){url},
|
||||
&argc, &argv))
|
||||
{
|
||||
ret = spawn(term->reaper, term->cwd, argv,
|
||||
dev_null, dev_null, dev_null, xdg_activation_token);
|
||||
ret = spawn(
|
||||
term->reaper, term->cwd, argv,
|
||||
dev_null, dev_null, dev_null, NULL, NULL, xdg_activation_token) >= 0;
|
||||
|
||||
for (size_t i = 0; i < argc; i++)
|
||||
free(argv[i]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue