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