+Version 0.56 -- 3 November 2000 <skimo@kotnet.org> Sven Verdoolaege
+
o add example remote.fpl
o provide access to the Request parameters
o add IsFastCGI method
+ o fix warn handler (Andrew Pimlott <pimlott@idiomtech.com>)
Version 0.55 -- 18 October 2000 <skimo@kotnet.org> Sven Verdoolaege
-# $Id: FCGI.pm,v 1.14 2000/11/01 15:12:27 skimo Exp $
+# $Id: FCGI.pm,v 1.15 2000/11/03 15:42:10 skimo Exp $
package FCGI;
}
# not SFIO
- $SIG{__WARN__} = $SIG{__DIE__} = $warn_die_handler if (tied (*STDIN));
+ $SIG{__WARN__} = $warn_handler if (tied (*STDIN));
+ $SIG{__DIE__} = $die_handler if (tied (*STDIN));
return $rc;
}
# not SFIO
if (tied (*STDIN)) {
- for (qw(__WARN__ __DIE__)) {
- delete $SIG{$_} if ($SIG{$_} == $warn_die_handler);
- }
+ delete $SIG{__WARN__} if ($SIG{__WARN__} == $warn_handler);
+ delete $SIG{__DIE__} if ($SIG{__DIE__} == $die_handler);
}
Finish ($global_request);
}
$global_request = Request();
-$warn_die_handler = sub { print STDERR @_ unless $^S };
+$warn_handler = sub { print STDERR @_ };
+$die_handler = sub { print STDERR @_ unless $^S };
package FCGI::Stream;
one will be finished first.
Note that unlike with the old interface, no die and warn
-handlers are installed by default.
+handlers are installed by default. This means that if
+you are not running an sfio enabled perl, any warn or
+die message will not end up in the server's log by default.
+It is advised you set up die and warn handlers yourself.
+FCGI.pm contains an example of die and warn handlers.
=item $req->Finish()