in reply to Re^2: Shared memory and asynchronous access
in thread Shared memory and asynchronous access
Changing the while loop to
made the original not hang onuse POSIX ":sys_wait_h"; while ( kill(0, $pid) ) { my $addr = recv( $socket, my $time, 1024, 0 ) or select '','','',0 +.015; printf "\rProgress: %s", $time; my $res = waitpid($pid, WNOHANG); }
This is perl 5, version 20, subversion 1 (v5.20.1) built for MSWin32-x +86-multi-thread-64int (with 1 registered patch, see perl -V for more detail) Copyright 1987-2014, Larry Wall Binary build 2000 [298557] provided by ActiveState http://www.ActiveSt +ate.com Built Oct 15 2014 22:10:49
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Shared memory and asynchronous access
by BrowserUk (Patriarch) on Apr 06, 2017 at 09:33 UTC | |
by huck (Prior) on Apr 06, 2017 at 10:17 UTC | |
by BrowserUk (Patriarch) on Apr 06, 2017 at 10:51 UTC | |
|
Re^4: Shared memory and asynchronous access
by Anonymous Monk on Apr 06, 2017 at 18:03 UTC | |
by huck (Prior) on Apr 06, 2017 at 18:52 UTC | |
by Anonymous Monk on Apr 06, 2017 at 19:00 UTC | |
by Anonymous Monk on Apr 06, 2017 at 18:10 UTC |