From: Samuel Cabrero Date: Wed, 6 Feb 2019 08:11:47 +0000 (+0100) Subject: s3:spoolss: Exit if fork call fails X-Git-Tag: talloc-2.3.0~38 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd62ab62aed2702c5646242b6400455f9fa4e391;p=thirdparty%2Fsamba.git s3:spoolss: Exit if fork call fails Signed-off-by: Samuel Cabrero Reviewed-by: Andreas Schneider Reviewed-by: Stefan Metzmacher --- 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 */