Hello community,

here is the log from the commit of package perl-Mojo-IOLoop-ReadWriteProcess 
for openSUSE:Factory checked in at 2020-10-10 00:29:11
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Mojo-IOLoop-ReadWriteProcess (Old)
 and      
/work/SRC/openSUSE:Factory/.perl-Mojo-IOLoop-ReadWriteProcess.new.4249 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "perl-Mojo-IOLoop-ReadWriteProcess"

Sat Oct 10 00:29:11 2020 rev:11 rq:840304 version:0.28

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/perl-Mojo-IOLoop-ReadWriteProcess/perl-Mojo-IOLoop-ReadWriteProcess.changes
      2020-07-05 01:19:41.733281389 +0200
+++ 
/work/SRC/openSUSE:Factory/.perl-Mojo-IOLoop-ReadWriteProcess.new.4249/perl-Mojo-IOLoop-ReadWriteProcess.changes
    2020-10-10 00:29:12.761148890 +0200
@@ -1,0 +2,9 @@
+Sun Oct  4 03:16:47 UTC 2020 - Tina Müller <timueller+p...@suse.de>
+
+- updated to 0.28
+   see /usr/share/doc/packages/perl-Mojo-IOLoop-ReadWriteProcess/Changes
+
+  0.28 2020-09-30T11:51:40Z
+   - Avoid executing "blocking stop" code when process has already terminated 
by Martchus
+
+-------------------------------------------------------------------

Old:
----
  Mojo-IOLoop-ReadWriteProcess-0.27.tar.gz

New:
----
  Mojo-IOLoop-ReadWriteProcess-0.28.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ perl-Mojo-IOLoop-ReadWriteProcess.spec ++++++
--- /var/tmp/diff_new_pack.kfn3mm/_old  2020-10-10 00:29:13.429149222 +0200
+++ /var/tmp/diff_new_pack.kfn3mm/_new  2020-10-10 00:29:13.429149222 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           perl-Mojo-IOLoop-ReadWriteProcess
-Version:        0.27
+Version:        0.28
 Release:        0
 %define cpan_name Mojo-IOLoop-ReadWriteProcess
 Summary:        Execute external programs or internal code blocks as separate 
process

++++++ Mojo-IOLoop-ReadWriteProcess-0.27.tar.gz -> 
Mojo-IOLoop-ReadWriteProcess-0.28.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Mojo-IOLoop-ReadWriteProcess-0.27/Changes 
new/Mojo-IOLoop-ReadWriteProcess-0.28/Changes
--- old/Mojo-IOLoop-ReadWriteProcess-0.27/Changes       2020-07-03 
02:27:21.000000000 +0200
+++ new/Mojo-IOLoop-ReadWriteProcess-0.28/Changes       2020-09-30 
13:53:44.000000000 +0200
@@ -1,6 +1,9 @@
 
 Revision history for Perl extension Mojo-IOLoop-ReadWriteProcess
 
+0.28 2020-09-30T11:51:40Z
+ - Avoid executing "blocking stop" code when process has already terminated by 
Martchus 
+
 0.27 2020-07-03T00:25:15Z
   - Fix CircleCI build
   - Fix perl required version
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Mojo-IOLoop-ReadWriteProcess-0.27/META.json 
new/Mojo-IOLoop-ReadWriteProcess-0.28/META.json
--- old/Mojo-IOLoop-ReadWriteProcess-0.27/META.json     2020-07-03 
02:27:21.000000000 +0200
+++ new/Mojo-IOLoop-ReadWriteProcess-0.28/META.json     2020-09-30 
13:53:44.000000000 +0200
@@ -56,7 +56,7 @@
    "provides" : {
       "Mojo::IOLoop::ReadWriteProcess" : {
          "file" : "lib/Mojo/IOLoop/ReadWriteProcess.pm",
-         "version" : "0.27"
+         "version" : "0.28"
       },
       "Mojo::IOLoop::ReadWriteProcess::CGroup" : {
          "file" : "lib/Mojo/IOLoop/ReadWriteProcess/CGroup.pm"
@@ -148,7 +148,7 @@
          "web" : "https://github.com/mudler/Mojo-IOLoop-ReadWriteProcess";
       }
    },
-   "version" : "0.27",
+   "version" : "0.28",
    "x_contributors" : [
       "Clemens Famulla-Conrad <cfamullacon...@suse.de>",
       "Ettore Di Giacinto <mud...@gentoo.org>",
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Mojo-IOLoop-ReadWriteProcess-0.27/META.yml 
new/Mojo-IOLoop-ReadWriteProcess-0.28/META.yml
--- old/Mojo-IOLoop-ReadWriteProcess-0.27/META.yml      2020-07-03 
02:27:21.000000000 +0200
+++ new/Mojo-IOLoop-ReadWriteProcess-0.28/META.yml      2020-09-30 
13:53:44.000000000 +0200
@@ -27,7 +27,7 @@
 provides:
   Mojo::IOLoop::ReadWriteProcess:
     file: lib/Mojo/IOLoop/ReadWriteProcess.pm
-    version: '0.27'
+    version: '0.28'
   Mojo::IOLoop::ReadWriteProcess::CGroup:
     file: lib/Mojo/IOLoop/ReadWriteProcess/CGroup.pm
   Mojo::IOLoop::ReadWriteProcess::CGroup::v1:
@@ -87,7 +87,7 @@
   bugtracker: https://github.com/mudler/Mojo-IOLoop-ReadWriteProcess/issues
   homepage: https://github.com/mudler/Mojo-IOLoop-ReadWriteProcess
   repository: git://github.com/mudler/Mojo-IOLoop-ReadWriteProcess.git
-version: '0.27'
+version: '0.28'
 x_contributors:
   - 'Clemens Famulla-Conrad <cfamullacon...@suse.de>'
   - 'Ettore Di Giacinto <mud...@gentoo.org>'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/Mojo-IOLoop-ReadWriteProcess-0.27/lib/Mojo/IOLoop/ReadWriteProcess.pm 
new/Mojo-IOLoop-ReadWriteProcess-0.28/lib/Mojo/IOLoop/ReadWriteProcess.pm
--- old/Mojo-IOLoop-ReadWriteProcess-0.27/lib/Mojo/IOLoop/ReadWriteProcess.pm   
2020-07-03 02:27:21.000000000 +0200
+++ new/Mojo-IOLoop-ReadWriteProcess-0.28/lib/Mojo/IOLoop/ReadWriteProcess.pm   
2020-09-30 13:53:44.000000000 +0200
@@ -1,6 +1,6 @@
 package Mojo::IOLoop::ReadWriteProcess;
 
-our $VERSION = '0.27';
+our $VERSION = '0.28';
 
 use Mojo::Base 'Mojo::EventEmitter';
 use Mojo::File 'path';
@@ -396,7 +396,6 @@
 }
 
 sub restart {
-  $_[0]->{_status} = undef;
   $_[0]->is_running ? $_[0]->stop->start : $_[0]->start;
 }
 sub is_running { $_[0]->process_id ? kill 0 => $_[0]->process_id : 0; }
@@ -473,6 +472,7 @@
     : ();
 
   $self->session->enable_subreaper if $self->subreaper;
+  $self->_status(undef);
 
   if ($self->code) {
     $self->_fork($self->code, @args);
@@ -535,6 +535,7 @@
       $timeout -= $sleep_time;
     }
   }
+  return $self->_shutdown if defined $self->_status;
 
   sleep $self->kill_sleeptime if $self->kill_sleeptime;
 
@@ -546,13 +547,13 @@
     $self->send_signal($self->_default_blocking_signal, $pid);
     $ret = waitpid($pid, 0);
     $self->_status($?) if $ret == $pid || $ret == -1;
+    return $self->_shutdown;
   }
   else {
     $self->_diag("Could not kill process id: $pid") if DEBUG;
     $self->_new_err('Could not kill process');
   }
-
-  return $self->_shutdown;
+  return $self;
 }
 
 sub _shutdown {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Mojo-IOLoop-ReadWriteProcess-0.27/t/01_run.t 
new/Mojo-IOLoop-ReadWriteProcess-0.28/t/01_run.t
--- old/Mojo-IOLoop-ReadWriteProcess-0.27/t/01_run.t    2020-07-03 
02:27:21.000000000 +0200
+++ new/Mojo-IOLoop-ReadWriteProcess-0.28/t/01_run.t    2020-09-30 
13:53:44.000000000 +0200
@@ -225,6 +225,7 @@
   $p->start();
   $p->stop();
   is $p->is_running, 1, 'process is still running';
+  is $p->_status, undef, 'no status yet';
   my $err = ${(@{$p->error})[0]};
   my $exp = qr/Could not kill process/;
   like $err, $exp, 'Error is not empty if process could not be killed';


Reply via email to