| 605 | struct ReadSelfCmdline { |
| 606 | std::string content; |
| 607 | ReadSelfCmdline() { |
| 608 | char buf[1024]; |
| 609 | const ssize_t nr = butil::ReadCommandLine(buf, sizeof(buf), true); |
| 610 | content.append(buf, nr); |
| 611 | } |
| 612 | }; |
| 613 | static void get_cmdline(std::ostream& os, void*) { |
| 614 | os << butil::get_leaky_singleton<ReadSelfCmdline>()->content; |
nothing calls this directly
no test coverage detected