The Samba-Bugzilla – Attachment 13921 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.7 (from master)
bug-13240_v4-7.patch (text/plain), 1.20 KB, created by
Björn Baumbach
on 2018-01-23 11:29:34 UTC
(
hide
)
Description:
fix for 4.7 (from master)
Filename:
MIME Type:
Creator:
Björn Baumbach
Created:
2018-01-23 11:29:34 UTC
Size:
1.20 KB
patch
obsolete
>From 57c7a107290173a64ae891d8d81a4674cf739c78 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 b57ee4c2c60..60e2797eb74 100644 >--- a/source4/smbd/server.c >+++ b/source4/smbd/server.c >@@ -128,12 +128,10 @@ static void sig_term(int sig) > * We're the process group leader, send > * SIGTERM to our process group. > */ >- DEBUG(0,("SIGTERM: killing children\n")); > kill(-getpgrp(), SIGTERM); > } > #endif >- DEBUG(0,("Exiting pid %d on SIGTERM\n", (int)getpid())); >- exit(127); >+ _exit(127); > } > > static void sigterm_signal_handler(struct tevent_context *ev, >-- >2.13.6 >
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:
asn
:
review+
vl
:
review+
Actions:
View
Attachments on
bug 13240
:
13920
| 13921 |
13967