On Mon, May 31, 2021 at 2:22 AM Felipe Contreras
<[email protected]> wrote:
>
> Processes are not being started correctly with TIOCSCTTY, which does
> succeed after setsid().
I'm using the following program that uses posix_spawn as a test.
When using gvim, shelltemp on, and running it with :! nothing happens.
#include <spawn.h>
#include <signal.h>
extern char **environ;
int main(void)
{
char *const argv[] = { "/usr/bin/chromium", "http://google.com", NULL };
posix_spawnattr_t attr;
sigset_t mask;
posix_spawnattr_init(&attr);
sigemptyset(&mask);
sigaddset(&mask, SIGHUP);
posix_spawnattr_setsigdefault(&attr, &mask);
posix_spawnattr_setflags(&attr, POSIX_SPAWN_SETSIGDEF);
return posix_spawn(NULL, argv[0], NULL, &attr, argv, environ);
}
--
Felipe Contreras
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/CAMP44s3JevGSjCh%3D4vw%2Bk1jh5mFGD8PHVgZ2V4vWkCO0QA9NaQ%40mail.gmail.com.