Fix integration test doesn't report segfaults
This commit is contained in:
parent
26728d11a9
commit
03f4747c86
|
@ -503,7 +503,12 @@ if(cluster.isMaster)
|
|||
|
||||
worker.on("exit", function(code, signal)
|
||||
{
|
||||
if(code !== 0)
|
||||
if(signal)
|
||||
{
|
||||
console.warn("Worker killed by signal " + signal);
|
||||
process.exit(1);
|
||||
}
|
||||
else if(code !== 0)
|
||||
{
|
||||
process.exit(code);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue