[EMAIL PROTECTED] wrote:
> Hello!
>
> I try to run Spamassassin on VMS 7.2. I downloaded the binary perl 5.6.1
> from ftp.sidhe.org adn try to use that. I managed to start spamd (with a
> little hacking), but when I try to connect to it, spamd crashes with the
> following message:
>
> Fatal VMS error (status=36) at PERLKIT:[SOURCE]VMS.C;1, line 2280 at spamd.raw l
> ine 782.
> %SYSTEM-F-NOPRIV, insufficient privilege or object protection violation
>
> The 782nd line of spamd.raw is the following:
> while ( my $kid = waitpid(-1, &WNOHANG) > 0 ) {
>
> Do you have any idea on what is the problem with waitpid and how may it
> be resolved?
Attila,
Unfortunately this is a problem we see fairly often and there is no
current workaround. There is a description of what's happening here:
<http://www.xray.mpe.mpg.de/mailing-lists/vmsperl/2002-08/msg00010.html>
You are seeing SS$_NOPRIV because you don't have privs to scan all the
processes on the system, which is the way VMS Perl incorrectly
interprets that particular waitpid() call.
If someone is looking for a nice little system programming project,
implementing waitpid(-1,&WNOHANG) in Perl_my_watpid in vms.c is available.