From fd62ab62aed2702c5646242b6400455f9fa4e391 Mon Sep 17 00:00:00 2001 From: Samuel Cabrero Date: Wed, 6 Feb 2019 09:11:47 +0100 Subject: [PATCH] s3:spoolss: Exit if fork call fails Signed-off-by: Samuel Cabrero Reviewed-by: Andreas Schneider Reviewed-by: Stefan Metzmacher --- source3/printing/spoolssd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source3/printing/spoolssd.c b/source3/printing/spoolssd.c index a3c69dfb54f..69639577a5c 100644 --- a/source3/printing/spoolssd.c +++ b/source3/printing/spoolssd.c @@ -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 */ -- 2.47.3