Re: $SIG{INT} tampering during DBI->connect on Oracle

Brian Phillips <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.dbi.sybase.devel
Message-ID <[email protected]>
On Wed, Nov 3, 2010 at 9:55 AM, Charles Jardine <[email protected]> wrote:
> I simply do not see this effect. The following program:
>
>  #!/usr/local/bin/perl -w
>  use DBI;
>  my $dbh = DBI->connect("dbi:Oracle:", oralogin) or die "Failed\n";
>  $| = 1;
>  sleep 1, print('.') while 1;
>
> prints dots every second until I press ^C, at which point it terminates.
>
> There must be something different about your environment. For reference, I
> have Oracle 10.2.0.4.6, Perl 5.10.1, DBI 1.609, DBD::Oracle 1.24. The
> OS is SLES 10 SP 3. It makes no difference whether I use the bequeather
> or a TNS connection.

I can use your exact script and it doesn't respond to a <CTRL>-C.  The
only difference is that I'm specifying a username and password in the
DBI->connect call but I wouldn't think that would make any difference.

Our versions are similar:
perl 5.10.1
DBI 1.611
DBD::Oracle 1.24
Oracle Client 11.2.0.1.0
uname -a == Linux [snip] 2.6.35-22-generic #35-Ubuntu SMP Sat Oct 16
20:45:36 UTC 2010 x86_64 GNU/Linux
I also tried it on another machine with these versions and experienced
the exact same results:
perl 5.8.9
DBI 1.609
DBD::Oracle 1.26
Oracle Client 10.2.0.4.0
uname -a == Linux [snip] 2.6.18-92.1.17.el5 #1 SMP Tue Nov 4 13:45:01
EST 2008 i686 i686 i386 GNU/Linux

Are there any other environmental things that might be different?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.