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;