mirror of
https://github.com/cmur2/dyndnsd.git
synced 2026-04-08 02:18:28 +02:00
Prevent zombie processes
This commit is contained in:
@@ -15,6 +15,8 @@ module Dyndnsd
|
|||||||
pid = fork do
|
pid = fork do
|
||||||
exec @command
|
exec @command
|
||||||
end
|
end
|
||||||
|
# detach so children don't become zombies
|
||||||
|
Process.detach(pid)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user