-// Copyright (C) 2009-2017 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2009-2021 CEA/DEN, EDF R&D, OPEN CASCADE
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
#ifdef WIN32
#include <io.h>
#define _chmod chmod
+#include <process.h>
#endif
#include <sstream>
// File name
std::string launch_date_port_file = launch_date;
std::ostringstream str_pid;
+#ifdef WIN32
+ str_pid << _getpid();
+#else
str_pid << ::getpid();
+#endif
std::string launch_script = Kernel_Utils::GetTmpDir() + "runCommand_"
+ _job_file_name + "_" + launch_date + "-"
+ str_pid.str();