Can't get 'kill "INT", $pid;' to work on 5.8.8

This is a multi-part message in MIME format.

--===============1295891994==
Content-class: urn:content-classes:message
Content-Type: multipart/alternative;
boundary="----_=_NextPart_001_01C761CF.E03B4CBA"

This is a multi-part message in MIME format.

------_=_NextPart_001_01C761CF.E03B4CBA
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hi Folks,



I don't seem to be able to get any kind of signaling to work on 5.8.8
build 820.

Has anyone else ran into a similar situation? If so did you find a work
around?



I have tried

Kill "INT", $pid;



The target process never makes it into the $SIG{INT} handler when this
is done. Manually entering CTRL-C works as expected and does get into
the signal handler.



On 5.6.1 we obtained a console handle and used:

$console->GenerateCtrlEvent();



This also does not work on 5.8.8.



The only information I can find in the porting document is that signals
now wait for the last opcode to complete before processing the signal. I
don't think that's the issue here as the signal is never received or
processed in the first place.



Any information would be appreciated.



Thanks - Rick





Rick Washburn

928-478-4663, Cell 928-978-1798




------_=_NextPart_001_01C761CF.E03B4CBA
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html>

<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 11 (filtered)">
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
span.EmailStyle17
{font-family:Arial;
color:windowtext;}
[at] page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
{page:Section1;}
-->
</style>

</head>

<body lang=3DEN-US link=3Dblue vlink=3Dpurple>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Hi Folks,</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'> </span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>I don’t seem to be able to get any kind of =
signaling
to work on 5.8.8 build 820. </span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Has anyone else ran into a similar situation? If so =
did you
find a work around?</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'> </span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>I have tried</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Kill “INT”, $pid;</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'> </span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>The target process never makes it into the $SIG{INT} =
handler
when this is done. Manually entering CTRL-C works as expected and does =
get into
the signal handler.</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'> </span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>On 5.6.1 we obtained a console handle and =
used:</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>$console->GenerateCtrlEvent();</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'> </span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>This also does not work on 5.8.8.</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'> </span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>The only information I can find in the porting =
document is
that signals now wait for the last opcode to complete before processing =
the
signal. I don’t think that’s the issue here as the signal is =
never
received or processed in the first place.</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'> </span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Any information would be =
appreciated.</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'> </span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Thanks - Rick</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'> </span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'> </span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Rick Washburn</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>928-478-4663, Cell 928-978-1798</span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'> </span></font></p>

</div>

</body>

</html>

------_=_NextPart_001_01C761CF.E03B4CBA--

--===============1295891994==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
ActivePerl mailing list
ActivePerl [at] listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
--===============1295891994==--
fwashbur [ Do, 08 März 2007 23:19 ] [ ID #1651972 ]

Re: Can't get 'kill "INT", $pid;' to work on 5.8.8

Washburn, Frederick wrote:
> Hi Folks,
> =

> I don=92t seem to be able to get any kind of signaling to work on 5.8.8 =

> build 820.

There are no signals in Win32 if that's what we're talking about. AS has
implemented a pseudo signal mechanism that can be blocked on wait mode IO
and therefore is hardly reliable. Personally I wouldn't even attempt to
use signals of any sort other than maybe attempting cleanup on Ctrl-C abort.

> Has anyone else ran into a similar situation? If so did you find a work =

> around?
> =

> I have tried
> =

> Kill =93INT=94, $pid;

It would be: kill 'INT', $pid; kill is case sensitive.

Where did you get $pid from - what mechanism ?
What is the $pid process doing when you kill it ? Is it blocked ?
Where is some actual test code that shows the problem ?

I just attempted a similar test and it killed the process OK - note that
the other process wasn't doing any blocking IO and also not that was
on 811 not 820, but if you have failing 820 test code I'd be glad to help
verify it fails (or not) on 811.

> The target process never makes it into the $SIG{INT} handler when this =

> is done. Manually entering CTRL-C works as expected and does get into =

> the signal handler. =


That implies that the target process has a console, but not much else
and Ctrl-C doesn't really use signals on Windoze.
_______________________________________________
ActivePerl mailing list
ActivePerl [at] listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Bill Luebkert [ Fr, 09 März 2007 02:58 ] [ ID #1653124 ]
Perl » gmane.comp.lang.perl.active-perl » Can't get 'kill "INT", $pid;' to work on 5.8.8

Vorheriges Thema: Tk::Menu with UTF8 characters : attempted circumvention
Nächstes Thema: Win32::OLE