Only daemonize if we've been asked to

Signed-off-by: Jon Ludlam <jonathan.ludlam@eu.citrix.com>
Fix squeezed following semantic change in xs api

Turns out the old xenstore client would silently ignore Xb.Noent
exceptions raised by 'rm', but the new xenstore client doesn't.

Not entirely sure whether this should be changed in the new
xenstore client - it's likely to lead to some regressions if
we're not very careful.

Signed-off-by: Jon Ludlam <jonathan.ludlam@eu.citrix.com>
Improved Makefile: it recompiles when needed, and only when needed
Removed unneeded opens in squeezed
Merge pull request #6 from vbmithr/master

Mostly improved Makefile
Fix xenstore client which would break when the process forked

The xenstore client set up a server thread that reads responses
from the xenstore socket. This was getting terminated by the
act of forking, so no requests ever completed.

This change deferrs the creation of the thread until after the
daemonize call.

Signed-off-by: Jon Ludlam <jonathan.ludlam@eu.citrix.com>
Merge branch 'master' of github.com:xen-org/squeezed