Bugzilla – Attachment 164663 Details for
Bug 30897
Gracefully reload Koha after plugin install/upgrade
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30897: Remove recursive parent identification loop
Bug-30897-Remove-recursive-parent-identification-l.patch (text/plain), 1.23 KB, created by
Martin Renvoize (ashimema)
on 2024-04-11 08:38:04 UTC
(
hide
)
Description:
Bug 30897: Remove recursive parent identification loop
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2024-04-11 08:38:04 UTC
Size:
1.23 KB
patch
obsolete
>From e43bd83ffb22fef1bc55c629b79de9ef48606dee Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Thu, 11 Apr 2024 10:33:28 +0200 >Subject: [PATCH] Bug 30897: Remove recursive parent identification loop > >We believe that plack will only spawn from one parent and children >cannot spawn further child processes.. as such we don't need to walk up >the tree. >--- > Koha/Plugins.pm | 11 ++--------- > 1 file changed, 2 insertions(+), 9 deletions(-) > >diff --git a/Koha/Plugins.pm b/Koha/Plugins.pm >index 88c51a5e6f4..2b4c07956e6 100644 >--- a/Koha/Plugins.pm >+++ b/Koha/Plugins.pm >@@ -366,16 +366,9 @@ sub _restart_after_change { > > return unless ( C4::Context->config('plugins_restart') && C4::Context->psgi_env ); > >- my $parent_pid = getpid(); >- my $ppid = getppid(); # Get the parent process ID >+ my $parent_pid = getppid(); > >- # If the current process is not Plack parent, find the parent process recursively >- while ( $parent_pid != $ppid ) { >- $parent_pid = $ppid; >- $ppid = getppid(); >- } >- >- # Send SIGUSR1 signal to Plack parent process for graceful restart >+ # Send HUP signal to Plack parent process for graceful restart > kill 'HUP', $parent_pid; > } > >-- >2.44.0
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 30897
:
164587
|
164588
|
164654
|
164655
|
164657
|
164658
|
164660
|
164661
|
164662
|
164663
|
164735
|
164736
|
164737
|
164738
|
164758