s3-spoolssd: Check if we were able to create the prefork pool.
authorAndreas Schneider <asn@samba.org>
Fri, 15 Jul 2011 16:08:35 +0000 (18:08 +0200)
committerSimo Sorce <idra@samba.org>
Sun, 21 Aug 2011 13:05:02 +0000 (09:05 -0400)
Signed-off-by: Andreas Schneider <asn@samba.org>
Signed-off-by: Simo Sorce <idra@samba.org>
source3/printing/spoolssd.c

index 09ffc05caf1edcbf8c1d4858e362e3f0bb468b94..c5c30ab104d57ec3d045dcdfd194d1f85ea7bcf2 100644 (file)
@@ -820,6 +820,9 @@ pid_t start_spoolssd(struct tevent_context *ev_ctx,
                                 spoolss_max_children,
                                 &spoolss_children_main, NULL,
                                 &spoolss_pool);
+       if (!ok) {
+               exit(1);
+       }
 
        if (!serverid_register(procid_self(),
                                FLAG_MSG_GENERAL |