commit | 672d19dc9e9eb74565f8616702c733a0872add45 | [log] [tgz] |
---|---|---|
author | Joern Engel <joern@logfs.org> | Tue Jan 17 09:40:09 2012 -0800 |
committer | Joern Engel <joern@logfs.org> | Tue Jan 17 09:40:09 2012 -0800 |
tree | c831f76336c0ce2efcaba93791cf5bac66cb7eb3 | |
parent | 585f32119a017e6fc381d0407a7a3a31dc5328b4 [diff] |
Create DNS thread When possible we should use DNS hostnames instead of IP addresses as logfile names. But gethostbyaddr() can block indefinitely, so run that command from a dedicated thread. If it blocks, we just write to the ip address name. Signed-off-by: Joern Engel <joern@logfs.org>