mirror of https://github.com/BOINC/boinc.git
Mac uninstaller: Fix a hang bug on some older versions of OS X (including 10.6.8.)
This commit is contained in:
parent
7c9a76bb70
commit
c63204bf08
|
@ -141,6 +141,8 @@ int main(int argc, char *argv[])
|
||||||
err = DoUninstall();
|
err = DoUninstall();
|
||||||
|
|
||||||
BOINCTranslationCleanup();
|
BOINCTranslationCleanup();
|
||||||
|
|
||||||
|
printf("Done\n"); // Signal DoPrivilegedExec() that we finished
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -936,6 +938,8 @@ static OSStatus DoPrivilegedExec(char *brandName, const char *pathToTool, char *
|
||||||
if (ioPipe) {
|
if (ioPipe) {
|
||||||
do {
|
do {
|
||||||
p = fgets(junk, sizeof(junk), ioPipe);
|
p = fgets(junk, sizeof(junk), ioPipe);
|
||||||
|
// On some older versions of OS X, the pipe does not send EOF when our tool exits
|
||||||
|
if (!strcmp(p, "Done\n")) break;
|
||||||
} while (p);
|
} while (p);
|
||||||
|
|
||||||
fclose (ioPipe);
|
fclose (ioPipe);
|
||||||
|
|
Loading…
Reference in New Issue