diff --git a/Makefile b/Makefile
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-.PHONY: all build dist install test clean doc
+.PHONY: all build dist install test clean doc p
 
 all: build test
 
@@ -23,3 +23,6 @@
 
 doc: build
 	cabal haddock
+
+p: clean
+	permamake.sh $(shell find */ -name '*.hs') *.cabal Makefile *.md
diff --git a/NEWS.md b/NEWS.md
--- a/NEWS.md
+++ b/NEWS.md
@@ -0,0 +1,10 @@
+Changes
+=======
+
+0.1.1 (18 Aug 2012)
+-------------------
+
+ - do *not* use the `-threaded` runtime;
+
+ - use of IPv4 to workaround unpredictable behaviours in different
+   distros.
diff --git a/System/Daemon.hs b/System/Daemon.hs
--- a/System/Daemon.hs
+++ b/System/Daemon.hs
@@ -23,7 +23,7 @@
 import Network.Socket ( Socket, SockAddr(..), Family(..), SocketType(..)
                       , SocketOption(..), setSocketOption
                       , socket, sClose, connect, bindSocket, listen
-                      , getAddrInfo, addrAddress
+                      , AddrInfo(..), getAddrInfo, addrAddress, defaultHints
                       , defaultProtocol, iNADDR_ANY, maxListenQueue )
 import System.Directory ( getHomeDirectory )
 import System.FilePath ( (</>), (<.>) )
@@ -147,7 +147,9 @@
 -- | Create a socket connected to the given network address.
 getSocket :: HostName -> Port -> IO Socket
 getSocket hostname port = do
-    addrInfos <- getAddrInfo Nothing (Just hostname) (Just $ show port)
+    addrInfos <- getAddrInfo (Just (defaultHints { addrFamily = AF_INET }))
+                             (Just hostname)
+                             (Just $ show port)
     CE.bracketOnError
         (socket AF_INET Stream defaultProtocol)
         sClose
diff --git a/daemons.cabal b/daemons.cabal
--- a/daemons.cabal
+++ b/daemons.cabal
@@ -1,5 +1,5 @@
 Name:           daemons
-Version:        0.1.0
+Version:        0.1.1
 Cabal-Version:  >= 1.8
 License:        GPL-3
 License-File:   LICENSE
@@ -7,7 +7,7 @@
 Author:         Alexandru Scvortov <scvalex@gmail.com>
 Maintainer:     scvalex@gmail.com
 Homepage:       https://github.com/scvalex/daemons
-Category:       Text
+Category:       System, Control, Network
 Synopsis:       Daemons in Haskell made fun and easy
 Build-Type:     Simple
 Description:
@@ -39,7 +39,7 @@
   Build-depends:        base >= 4 && < 5, bytestring, cereal,
                         data-default, directory, filepath, network, pipes,
                         transformers, unix
-  Ghc-options:          -Wall -threaded
+  Ghc-options:          -Wall
   Exposed-modules:      Control.Pipe.C3,
                         Control.Pipe.Serialize,
                         Control.Pipe.Socket,
