- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- OpenVMS Perl signals incorrect
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-05-2007 05:17 PM
тАО02-05-2007 05:17 PM
For example, in signal.h, USR1 and USR2 signals are defined with values 16 and 17 for DEC C. But the following Perl script shows them to be 17 and 18 instead. The config.pm modules seems to be correct, but for some unknown reason, the USR1 and USR2 signals in Perl ended up with values 17 and 18.
Perl script to list available signals:
#!/usr/bin/perl
use Config;
defined $Config{sig_name} or die "No sigs?";
$i = 0;
foreach $name(split(' ',$Config{sig_name}))
{
$signo{$name} = $i;
$signame{$i} = $name;
print "Sig # ",$i," is named: ",$name,"\n";
$i++;
}
exit(0);
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-06-2007 02:54 AM
тАО02-06-2007 02:54 AM
Re: OpenVMS Perl signals incorrect
as 17 and 18:
sig_name='ZERO HUP INT QUIT ILL TRAP IOT EMT FPE KILL BUS SEGV SYS PIPE ALRM TERM ABRT USR1 USR2'
So to make Your C program correctly interacting with Perl, probably config.pm has to be changed:
I would replace IOT by ABRT, and remove ABRT from place 16.
IOT is the BSD name, ABRT is the ANSI C name.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-06-2007 03:08 AM
тАО02-06-2007 03:08 AM
Re: OpenVMS Perl signals incorrect
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-06-2007 05:07 PM
тАО02-06-2007 05:07 PM
Re: OpenVMS Perl signals incorrect
Thanks
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-06-2007 09:40 PM
тАО02-06-2007 09:40 PM
Re: OpenVMS Perl signals incorrect
I don't know if the ABRT signal at sig_num[16]
is intended or not.
config.pm is built from the definitions in the VMS-specific configure.com .
I suggest You go to the vmsperl mailing list and discuss with the experts ?
http://lists.cpan.org/showlist.cgi?name=vmsperl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-07-2007 04:49 AM
тАО02-07-2007 04:49 AM
SolutionMake all my previous answers VOID !
I think Your (and the config.pm examples) script should not print as "sig #", what in fact is just the index into the sig_name array.
At this index in $Config{sig_num} is the corresponding signal number , which is in sync with DECCs signal.h .
At index 16, name=ABRT is sig_num 6,
index 17, name=USR1 is sig_num 16
index 18, name=USR2 is sig_num 17
All is o.k., and just the legend in the test-script should be changed.