winemenubuilder: Use _P_DETACH instead of _P_NOWAIT with spawnvp() to avoid zombies.
This commit is contained in:
parent
92298f59fe
commit
31141a3bea
|
@ -3321,11 +3321,11 @@ static void RefreshFileTypeAssociations(void)
|
||||||
argv[0] = "update-mime-database";
|
argv[0] = "update-mime-database";
|
||||||
argv[1] = mime_dir;
|
argv[1] = mime_dir;
|
||||||
argv[2] = NULL;
|
argv[2] = NULL;
|
||||||
spawnvp( _P_NOWAIT, argv[0], argv );
|
spawnvp( _P_DETACH, argv[0], argv );
|
||||||
|
|
||||||
argv[0] = "update-desktop-database";
|
argv[0] = "update-desktop-database";
|
||||||
argv[1] = applications_dir;
|
argv[1] = applications_dir;
|
||||||
spawnvp( _P_NOWAIT, argv[0], argv );
|
spawnvp( _P_DETACH, argv[0], argv );
|
||||||
}
|
}
|
||||||
|
|
||||||
end:
|
end:
|
||||||
|
|
Loading…
Reference in New Issue