I
it_says_BALLS_on_your forehead
in '$!' or '$?' perhaps? I couldn't find it in the perldocs.
Thanks in advance for any assistance.
Thanks in advance for any assistance.
in '$!' or '$?' perhaps? I couldn't find it in the perldocs.
Thanks in advance for any assistance.
does anyone know of any
reason besides 'No such process' that would lead to a return of 0 from
the kill function? trying to come up with actionable instructions for
support team.
it_says_BALLS_on_your forehead said:nvm, i gather it's in '$!'. On another note, does anyone know of any
reason besides 'No such process' that would lead to a return of 0 from
the kill function?
Sure. Trying to kill processes you don't own. (Unless you are root)
perldoc perlipc
'Signals' has some information.
When directed at a process whose UID is not identical to that of the
sending process, signal number zero may fail because you lack permission
to send the signal, even though the process is alive. You may be able to
determine the cause of failure using "%!".
it_says_BALLS_on_your forehead said:did you really mean "%!"? or did you mean "$!"?
nvm, i gather it's in '$!'. On another note, does anyone know of any
reason besides 'No such process' that would lead to a return of 0 from
the kill function? trying to come up with actionable instructions for
support team.
did you really mean "%!"? or did you mean "$!"?
[A complimentary Cc of this posting was sent to
it_says_BALLS_on_your forehead
nvm, i gather it's in '$!'. On another note, does anyone know of any
reason besides 'No such process' that would lead to a return of 0 from
the kill function? trying to come up with actionable instructions for
support team.
What OS? On most OSes, there may be unkillable processes (not even by
root). [I rememeber getting ones on Solaris 2.6, when the floppy disk
started to misfunction....]
Since he also wrote
: unless (kill 0 => $pid or $!{EPERM}) {
^^^^^^^^^
^^^^^^^^^
: warn "$pid looks dead";
: }
it's clear enough that he meant C<%!>.
What OS? On most OSes, there may be unkillable processes (not even by
root). [I rememeber getting ones on Solaris 2.6, when the floppy disk
started to misfunction....]
This is SunOS 5.8.
hehe, clear to you perhaps . i hadn't recognized that '%!' was a
hash named '!'--to me, it was just a magic variable--nor did i
interpret $!{EPERM} to be a hash lookup. of course now that you've
explained it i see it clearly. thanks!
It should have been obvious that I copied and pasted the paragraph from
the Perl documentation I referenced. You did read:
perldoc perlipc
Right?
Ilya Zakharevich said:[A complimentary Cc of this posting was sent to
it_says_BALLS_on_your forehead
What OS? On most OSes, there may be unkillable processes (not even by
root). [I rememeber getting ones on Solaris 2.6, when the floppy disk
started to misfunction....]This is SunOS 5.8.
I think it should not matter. It is hard to imagine an OS
architecture which would not allow a device driver to define "Do not
interrupt programs which entered this chunk of my code" flag.
Anyone with more detailed knowledge?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.