The Samba-Bugzilla – Attachment 13967 Details for
Bug 13240
samba process hangs on shutdown
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
fix for 4.6
bug-13240_v4-6.patch (text/plain), 1.17 KB, created by
Björn Baumbach
on 2018-02-19 12:21:39 UTC
(
hide
)
Description:
fix for 4.6
Filename:
MIME Type:
Creator:
Björn Baumbach
Created:
2018-02-19 12:21:39 UTC
Size:
1.17 KB
patch
obsolete
>From 2923d67a21543e6a68ad5b8a8f7368b861917b90 Mon Sep 17 00:00:00 2001 >From: Volker Lendecke <vl@samba.org> >Date: Thu, 4 Jan 2018 21:06:02 +0100 >Subject: [PATCH] samba: Only use async signal-safe functions in signal handler >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >Otherwise shutdown can hang > >Signed-off-by: Volker Lendecke <vl@samba.org> >Reviewed-by: Andreas Schneider <asn@samba.org> > >BUG: https://bugzilla.samba.org/show_bug.cgi?id=13240 > >Signed-off-by: Björn Baumbach <bb@sernet.de> >(similar to commit 361ea743576cf125d7957a97ed78a0446dab1a19) >--- > source4/smbd/server.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > >diff --git a/source4/smbd/server.c b/source4/smbd/server.c >index 407f258e8aa..80067e9e084 100644 >--- a/source4/smbd/server.c >+++ b/source4/smbd/server.c >@@ -112,13 +112,11 @@ static void sig_term(int sig) > #if HAVE_GETPGRP > static int done_sigterm; > if (done_sigterm == 0 && getpgrp() == getpid()) { >- DEBUG(0,("SIGTERM: killing children\n")); > done_sigterm = 1; > kill(-getpgrp(), SIGTERM); > } > #endif >- DEBUG(0,("Exiting pid %d on SIGTERM\n", (int)getpid())); >- exit(127); >+ _exit(127); > } > > /* >-- >2.16.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Flags:
vl
:
review+
Actions:
View
Attachments on
bug 13240
:
13920
|
13921
| 13967