projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
unixsock plugin et alii: Allow passing of arbitrary identifiers to the FLUSH command.
[collectd.git]
/
bindings
/
perl
/
Collectd
/
Unixsock.pm
diff --git
a/bindings/perl/Collectd/Unixsock.pm
b/bindings/perl/Collectd/Unixsock.pm
index
af274a5
..
da144e6
100644
(file)
--- a/
bindings/perl/Collectd/Unixsock.pm
+++ b/
bindings/perl/Collectd/Unixsock.pm
@@
-471,6
+471,12
@@
sub flush
{
return;
}
+ if ($ident_str =~ m/ /)
+ {
+ $ident_str =~ s#\\#\\\\#g;
+ $ident_str =~ s#"#\\"#g;
+ $ident_str = "\"$ident_str\"";
+ }
$msg .= " identifier=$ident_str";
}