Fix 100% cpu usage when spawn nonexisting program
This commit is contained in:
@@ -838,8 +838,10 @@ sub spawn (@) {
|
|||||||
|
|
||||||
if (@args > 0) {
|
if (@args > 0) {
|
||||||
exec $prg, @args;
|
exec $prg, @args;
|
||||||
|
exit 0;
|
||||||
} else {
|
} else {
|
||||||
exec $prg;
|
exec $prg;
|
||||||
|
exit 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
# else - we just unable to fork, so silently ignore event
|
# else - we just unable to fork, so silently ignore event
|
||||||
|
|||||||
Reference in New Issue
Block a user