--- old/modules/jdk.packager/src/main/native/library/common/LinuxPlatform.h 2017-07-05 12:50:48.000000000 -0700 +++ new/modules/jdk.packager/src/main/native/library/common/LinuxPlatform.h 2017-07-05 12:50:48.000000000 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014, 2015, Oracle and/or its affiliates. + * Copyright (c) 2014, 2017, Oracle and/or its affiliates. * All rights reserved. Use is subject to license terms. * * This file is available and licensed under the following license: @@ -41,8 +41,10 @@ #include "PosixPlatform.h" #include "GenericPlatform.h" #include "JavaUserPreferences.h" - +#include +#include #include +#include #pragma warning( push ) @@ -52,6 +54,9 @@ private: pthread_t FMainThread; +protected: + virtual const char* getTmpDirString(); + public: LinuxPlatform(void); virtual ~LinuxPlatform(void); @@ -74,6 +79,7 @@ virtual ISectionalPropertyContainer* GetConfigFile(TString FileName); + virtual void reactivateAnotherInstance(); virtual bool IsMainThread(); virtual TPlatformNumber GetMemorySize(); @@ -96,6 +102,20 @@ virtual bool Load(TString Appid); }; +class ProcessReactivator { +private: + void searchWindowHelper(Window w); + + pid_t _pid; + Atom _atomPid; + Display* _display; + std::list _result; +public: + ProcessReactivator(Display *display, pid_t pid); + + void reactivateProcess(); +}; + #endif //LINUXPLATFORM_H #endif //LINUX