diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 1998-07-31 16:13:57 +0300 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1998-08-02 04:39:14 +0000 |
commit | 6087ac4414f58a8f56f41d3b670cd75f7a5e6936 (patch) | |
tree | 7462efad1880ee60b5108353620202d8ef691e4b /t | |
parent | ed0d1bf7a96441c0ced673e08553f37b3d8b5613 (diff) | |
download | perl-6087ac4414f58a8f56f41d3b670cd75f7a5e6936.tar.gz |
better validation of SysV IPC availability
Message-Id: <199807311013.NAA28887@koah.research.nokia.com>
Subject: Re: lib/ipc_sysv.t fails under FreeBSD 2.2.1
p4raw-id: //depot/maint-5.005/perl@1692
Diffstat (limited to 't')
-rwxr-xr-x | t/lib/ipc_sysv.t | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/t/lib/ipc_sysv.t b/t/lib/ipc_sysv.t index f74c5fa060..30ea48d999 100755 --- a/t/lib/ipc_sysv.t +++ b/t/lib/ipc_sysv.t @@ -28,6 +28,27 @@ my $sem; $SIG{__DIE__} = 'cleanup'; # will cleanup $msg and $sem if needed +# FreeBSD is known to throw this if there's no SysV IPC in the kernel. +$SIG{SYS} = sub { + print STDERR <<EOM; +SIGSYS caught. +It may be that your kernel does not have SysV IPC configured. + +EOM + if ($^O eq 'freebsd') { + print STDERR <<EOM; +You must have following options in your kernel: + +options SYSVSHM +options SYSVSEM +options SYSVMSG + +See config(8). +EOM + } + exit(1); +}; + if ($Config{'d_msgget'} eq 'define' && $Config{'d_msgctl'} eq 'define' && $Config{'d_msgsnd'} eq 'define' && |