s3:spoolss: Exit if fork call fails
authorSamuel Cabrero <scabrero@suse.de>
Wed, 6 Feb 2019 08:11:47 +0000 (09:11 +0100)
committerStefan Metzmacher <metze@samba.org>
Mon, 22 Jul 2019 16:49:14 +0000 (16:49 +0000)
Signed-off-by: Samuel Cabrero <scabrero@suse.de>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/printing/spoolssd.c

index a3c69dfb54fc089e1eb8d9be13856b489fadb962..69639577a5c7fd0e77672fe9c2a4d4357d0b5d2d 100644 (file)
@@ -616,6 +616,7 @@ pid_t start_spoolssd(struct tevent_context *ev_ctx,
        if (pid == -1) {
                DEBUG(0, ("Failed to fork SPOOLSS [%s]\n",
                           strerror(errno)));
+               exit(1);
        }
 
        /* parent or error */