daemon: Add libgcrypt call to state that the initialization is over.
authorLudovic Courtès <ludo@gnu.org>
Wed, 18 Dec 2013 20:29:00 +0000 (21:29 +0100)
committerLudovic Courtès <ludo@gnu.org>
Wed, 18 Dec 2013 23:02:49 +0000 (00:02 +0100)
* nix/nix-daemon/guix-daemon.cc (main): Add 'gcry_control' call.

nix/nix-daemon/guix-daemon.cc

index 4f9fa4c..484a390 100644 (file)
@@ -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 <http://lists.gnu.org/archive/html/bug-guix/2013-07/msg00033.html>.  */