We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92e82b5 commit ee13530Copy full SHA for ee13530
src/wrapper/simulation/SimulationTool.cpp
@@ -331,7 +331,7 @@ std::string SimulationTool::GenerateSimulationScript(const std::string& top_file
331
<< "OUT_LVL=\"" << Param->getOption<int>(OPT_output_level) << "\"\n\n"
332
<< "### Do not edit below\n\n";
333
334
- script << "function cleanup { if ${__sys_elf_pid}; then kill ${__sys_elf_pid}; fi }\n"
+ script << "function cleanup { if [ ${__sys_elf_pid} -ne 0 ]; then kill ${__sys_elf_pid}; fi }\n"
335
<< "trap cleanup EXIT\n\n";
336
337
GenerateScript(script, top_filename, file_list);
0 commit comments