From 029e6d18ca09c46140c4eae104447797f59579e5 Mon Sep 17 00:00:00 2001 From: daniceexi Date: Thu, 20 Nov 2014 07:14:50 -0500 Subject: [PATCH] defect 4419: change the db notification runs in DB process instead of fork a new one since the fork new process will cause DBI connection gets into confusing --- perl-xCAT/xCAT/NotifHandler.pm | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/perl-xCAT/xCAT/NotifHandler.pm b/perl-xCAT/xCAT/NotifHandler.pm index c23db6325..c70b73942 100644 --- a/perl-xCAT/xCAT/NotifHandler.pm +++ b/perl-xCAT/xCAT/NotifHandler.pm @@ -311,9 +311,6 @@ sub notify { my ($modname, $path, $suffix) = fileparse($_, ".pm"); # print "modname=$modname, path=$path, suffix=$suffix\n"; if ($suffix =~ /.pm/) { #it is a perl module - my $pid; - if ($pid=xCAT::Utils->xfork()) { } - elsif (defined($pid)) { my $fname; if (($path eq "") || ($path eq ".\/")) { #default path is /opt/xcat/lib/perl/xCAT_monitoring/ if there is no path specified @@ -328,8 +325,7 @@ sub notify { else { ${"xCAT_monitoring::".$modname."::"}{processTableChanges}->($action, $tablename, $old_data, $new_data); } - exit 0; - } + return 0; } else { #it is a command my $pid;