Skip Menu |

This queue is for tickets about the Proc-Simple CPAN distribution.

Report information
The Basics
Id: 81260
Status: open
Priority: 0/
Queue: Proc-Simple

People
Owner: Nobody in particular
Requestors: CHORNY [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.31
Fixed in: (no value)



Subject: exit.t hangs on Windows
Proc-Simple-1.31>perl -Mblib t/exit.t 1..1 POSIX::setsid not implemented on this architecture at Proc-Simple-1.31\blib\lib/Proc/Simple.pm line 250. Terminating on signal SIGINT(2) ls is not usually available on Windows File::Spec->devnull(); is more portable than /dev/null -- Alexandr Ciornii, http://chorny.net
On Sun Nov 18 08:02:21 2012, CHORNY wrote: Show quoted text
> Proc-Simple-1.31>perl -Mblib t/exit.t > 1..1 > POSIX::setsid not implemented on this architecture at > Proc-Simple-1.31\blib\lib/Proc/Simple.pm line 250. > Terminating on signal SIGINT(2) > ls is not usually available on Windows > File::Spec->devnull(); is more portable than /dev/null
Hi Chorny, there's a lot of Unix-isms in Proc::Simple, I'm surprised to hear it works at all on Windows. Does your perl on Windows support fork() or checking if a "process" is up via kill(0, pid)?
On Sun Nov 18 14:33:42 2012, MSCHILLI wrote: Show quoted text
> On Sun Nov 18 08:02:21 2012, CHORNY wrote:
> > Proc-Simple-1.31>perl -Mblib t/exit.t > > 1..1 > > POSIX::setsid not implemented on this architecture at > > Proc-Simple-1.31\blib\lib/Proc/Simple.pm line 250. > > Terminating on signal SIGINT(2) > > ls is not usually available on Windows > > File::Spec->devnull(); is more portable than /dev/null
> > Hi Chorny, > > there's a lot of Unix-isms in Proc::Simple, I'm surprised to hear it > works at all on Windows. Does your perl on Windows support fork()
yes (emulated with ithreads) http://perldoc.perl.org/perlfork.html Show quoted text
> or checking if a "process" is up via kill(0, pid)?
I think, yes. "As in Unix, if $sig is 0 and the specified process exists, it returns true without actually terminating it. (Win32)" - http://perldoc.perl.org/perlport.html#Interprocess-Communication-%28IPC%29 -- Alexandr Ciornii, http://chorny.net
If Proc::Simple cannot work on Windows at all, you can die in Makefile.PL. See http://wiki.cpantesters.org/wiki/CPANAuthorNotes for how to do this. -- Alexandr Ciornii, http://chorny.net
On Fri Dec 14 17:05:54 2012, CHORNY wrote: Show quoted text
> If Proc::Simple cannot work on Windows at all, you can die in > Makefile.PL. See http://wiki.cpantesters.org/wiki/CPANAuthorNotes for > how to do this.
Given that fork() and kill() allegedly work in compatible ways on Windows, I'm curious now why Proc::Simple doesn't work. You hinted that you could provide more verbose information, I'd definitely be interested in seeing that. Thanks! -- Mike