Handle vfork/exec failure

Don't call atexit, exit without cleanup.
This commit is contained in:
Robin Gareus 2020-10-31 22:33:10 +01:00
parent a9bd7b2848
commit cf0904f752
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
3 changed files with 3 additions and 3 deletions

View file

@ -562,7 +562,7 @@ PulseAudioBackend::launch_control_app ()
{
if (::vfork () == 0) {
::execlp ("pavucontrol", "pavucontrol", (char*)NULL);
exit (EXIT_SUCCESS);
_exit (EXIT_SUCCESS);
}
}