fuzzer: Don't handle signals when fuzzing.
Change-Id: I2febdf96bcbbd5c6edaf791d99a77674e6f0b0a9
This commit is contained in:
parent
cb3ccfe32d
commit
ad20adce1a
4 changed files with 6 additions and 2 deletions
|
@ -16,7 +16,6 @@
|
|||
#define LOK_USE_UNSTABLE_API
|
||||
#include <LibreOfficeKit/LibreOfficeKit.hxx>
|
||||
|
||||
#include <Poco/NotificationQueue.h>
|
||||
#include <Poco/Thread.h>
|
||||
|
||||
#include "Common.hpp"
|
||||
|
|
|
@ -334,8 +334,10 @@ int main(int argc, char** argv)
|
|||
}
|
||||
}
|
||||
|
||||
#ifndef FUZZER
|
||||
SigUtil::setFatalSignals();
|
||||
SigUtil::setTerminationSignals();
|
||||
#endif
|
||||
|
||||
// Initialization
|
||||
const bool logToFile = std::getenv("LOOL_LOGFILE");
|
||||
|
|
|
@ -40,7 +40,6 @@
|
|||
#include <Poco/Net/HTTPResponse.h>
|
||||
#include <Poco/Net/NetException.h>
|
||||
#include <Poco/Net/Socket.h>
|
||||
#include <Poco/NotificationQueue.h>
|
||||
#include <Poco/Process.h>
|
||||
#include <Poco/Runnable.h>
|
||||
#include <Poco/StringTokenizer.h>
|
||||
|
@ -1563,8 +1562,10 @@ void lokit_main(const std::string& childRoot,
|
|||
bool queryVersion,
|
||||
bool displayVersion)
|
||||
{
|
||||
#ifndef FUZZER
|
||||
SigUtil::setFatalSignals();
|
||||
SigUtil::setTerminationSignals();
|
||||
#endif
|
||||
|
||||
Util::setThreadName("loolkit");
|
||||
|
||||
|
|
|
@ -2314,8 +2314,10 @@ std::mutex Connection::Mutex;
|
|||
|
||||
int LOOLWSD::main(const std::vector<std::string>& /*args*/)
|
||||
{
|
||||
#ifndef FUZZER
|
||||
SigUtil::setFatalSignals();
|
||||
SigUtil::setTerminationSignals();
|
||||
#endif
|
||||
|
||||
// down-pay all the forkit linking cost once & early.
|
||||
Environment::set("LD_BIND_NOW", "1");
|
||||
|
|
Loading…
Reference in a new issue