From 37dd969c2eff527e21e2d277b3f4433111a0ca9e Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Wed, 18 Dec 2013 21:29:00 +0100 Subject: daemon: Add libgcrypt call to state that the initialization is over. * nix/nix-daemon/guix-daemon.cc (main): Add 'gcry_control' call. --- nix/nix-daemon/guix-daemon.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'nix/nix-daemon') diff --git a/nix/nix-daemon/guix-daemon.cc b/nix/nix-daemon/guix-daemon.cc index 4f9fa4c525..484a390936 100644 --- a/nix/nix-daemon/guix-daemon.cc +++ b/nix/nix-daemon/guix-daemon.cc @@ -195,6 +195,10 @@ main (int argc, char *argv[]) exit (EXIT_FAILURE); } + /* Tell Libgcrypt that initialization has completed, as per the Libgcrypt + 1.6.0 manual (although this does not appear to be strictly needed.) */ + gcry_control (GCRYCTL_INITIALIZATION_FINISHED, 0); + /* Set the umask so that the daemon does not end up creating group-writable files, which would lead to "suspicious ownership or permission" errors. See . */ -- cgit v1.2.3