|
Line
Link Here
|
| 0 |
-- libdbi-perl-1.21.orig/lib/DBI/ProxyServer.pm |
0 |
++ libdbi-perl-1.21/lib/DBI/ProxyServer.pm |
|
Lines 33-44
Link Here
|
| 33 |
package DBI::ProxyServer; |
33 |
package DBI::ProxyServer; |
| 34 |
my $haveFileSpec = eval { require File::Spec }; |
|
|
| 35 |
my $tmpDir = $haveFileSpec ? File::Spec->tmpdir() : |
| 36 |
($ENV{'TMP'} || $ENV{'TEMP'} || '/tmp'); |
| 37 |
my $defaultPidFile = $haveFileSpec ? |
| 38 |
File::Spec->catdir($tmpDir, "dbiproxy.pid") : "/tmp/dbiproxy.pid"; |
| 39 |
|
| 40 |
############################################################################ |
34 |
############################################################################ |
| 41 |
# |
35 |
# |
|
Lines 107-113
Link Here
|
| 107 |
} else { |
101 |
} else { |
| 108 |
$o->{'mode'} = 'single'; |
102 |
$o->{'mode'} = 'single'; |
| 109 |
} |
103 |
} |
| 110 |
$o->{'pidfile'} = $defaultPidFile; |
104 |
# No pidfile by default, configuration must provide one if needed |
|
|
105 |
$o->{'pidfile'} = 'none'; |
| 111 |
$o->{'user'} = undef; |
106 |
$o->{'user'} = undef; |
| 112 |
}; |
107 |
}; |
|
Lines 491-497
Link Here
|
| 491 |
=item I<pidfile> (B<--pidfile=file>) |
486 |
=item I<pidfile> (B<--pidfile=file>) |
| 492 |
(UNIX only) If this option is present, a PID file will be created at the |
487 |
(UNIX only) If this option is present, a PID file will be created at the |
| 493 |
given location. |
488 |
given location. Default is do not create a pidfile. |
| 494 |
=item I<user> (B<--user=uid>) |
489 |
=item I<user> (B<--user=uid>) |
| 495 |
-- libdbi-perl-1.21.orig/dbiproxy.PL |
490 |
++ libdbi-perl-1.21/dbiproxy.PL |
|
Lines 143-149
Link Here
|
| 143 |
=item B<--pidfile=file> |
143 |
=item B<--pidfile=file> |
| 144 |
(UNIX only) If this option is present, a PID file will be created at the |
144 |
(UNIX only) If this option is present, a PID file will be created at the |
| 145 |
given location. |
145 |
given location. Default is do not create a pidfile. |
| 146 |
=item B<--user=uid> |
146 |
=item B<--user=uid> |