mirror of
https://github.com/cmur2/dyndnsd.git
synced 2024-12-21 14:54:22 +01:00
Prevent zombie processes
This commit is contained in:
parent
00255ebed9
commit
a4b6a63383
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user