mirror of
https://github.com/cmur2/dyndnsd.git
synced 2025-04-10 06:23:40 +02: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…
x
Reference in New Issue
Block a user