wmstatus: don't try to spawn with setpgid(0, 0)

I cannot imagine a scenario where we want the child to be independent.

It didn't work anyway because *instead* of the call we should have
set a flag to call setpgid(), we were just reestablishing the defaults.
This commit is contained in:
Přemysl Eric Janouch 2017-05-06 22:30:54 +02:00
parent ba8657d8fe
commit 6a9383403c
Signed by: p
GPG Key ID: B715679E3A361BE6
1 changed files with 1 additions and 7 deletions

View File

@ -2082,14 +2082,8 @@ spawn (char *argv[])
posix_spawn_file_actions_addopen
(&actions, STDOUT_FILENO, "/dev/null", O_WRONLY, 0);
posix_spawnattr_t attr;
posix_spawnattr_init (&attr);
posix_spawnattr_setpgroup (&attr, 0);
posix_spawnp (NULL, argv[0], &actions, &attr, argv, environ);
posix_spawnp (NULL, argv[0], &actions, NULL, argv, environ);
posix_spawn_file_actions_destroy (&actions);
posix_spawnattr_destroy (&attr);
}
#define MPD_SIMPLE(name, ...) \