Skip to content

Commit

Permalink
Synchronized logging is not safe to use in the forked process
Browse files Browse the repository at this point in the history
  • Loading branch information
alexp-sssup committed Mar 13, 2011
1 parent 0f640a2 commit 88014f9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions swf.cpp
Expand Up @@ -636,8 +636,7 @@ void SystemState::createEngines()
argsStr += args[i];
i++;
}
LOG(LOG_NO_INFO, "Invoking '" << GNASH_PATH << argsStr <<
" < " << dumpedSWFPath.raw_buf() << "'");
cerr << "Invoking '" << GNASH_PATH << argsStr << " < " << dumpedSWFPath.raw_buf() << "'" << endl;
}

//Avoid calling browser signal handler during the short time between enabling signals and execve
Expand All @@ -646,7 +645,7 @@ void SystemState::createEngines()
pthread_sigmask(SIG_SETMASK, &oldset, NULL);
execve(GNASH_PATH, args, environ);
//If we are here execve failed, print an error and die
LOG(LOG_ERROR,_("Execve failed, content will not be rendered"));
cerr << _("Execve failed, content will not be rendered") << endl;
exit(0);
}
else //Parent process scope
Expand Down

0 comments on commit 88014f9

Please sign in to comment.