Changeset 9c26e336e64dadcca9eb4edb586d8ab43c6754e2
- Timestamp:
- 03/29/07 17:17:55
(6 years ago)
- Author:
- Eric Sproul <esproul@omniti.com>
- git-committer:
- Eric Sproul <esproul@omniti.com> 1175188675 +0000
- git-parent:
[9e27991e4a6a9ca92878a7ca39b69d0802d6d734]
- git-author:
- Eric Sproul <esproul@omniti.com> 1175188675 +0000
- Message:
Fix status file handling per Theo
git-svn-id: https://labs.omniti.com/resmon/trunk@37 8c0face9-b7db-6ec6-c4b3-d5f7145c7d55
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r5c7fb41 |
r9c26e33 |
|
| 12 | 12 | |
|---|
| 13 | 13 | my $SEGSIZE = 1024*256; |
|---|
| 14 | | my $statusfile; |
|---|
| 15 | 14 | sub new { |
|---|
| 16 | 15 | my $class = shift; |
|---|
| 17 | 16 | my $file = shift; |
|---|
| 18 | | return $statusfile if($statusfile); |
|---|
| 19 | 17 | return bless { |
|---|
| 20 | 18 | file => $file |
|---|
| … | … | |
| 229 | 227 | die "open $self->{file}.swap failed: $!\n" unless($self->{handle}); |
|---|
| 230 | 228 | $self->{swap_on_close} = 1; # move this to a non .swap version on close |
|---|
| 231 | | chmod 0644, "$statusfile.swap"; |
|---|
| | 229 | chmod 0644, "$self->{file}.swap"; |
|---|
| 232 | 230 | |
|---|
| 233 | 231 | unless($self->{shared_state}) { |
|---|