Files
FairMQ/fairmq/tools
Claude f50b1f0e39 feat(tools): add an execute() overload with a deadline
- a child process that hangs blocked execute() until the caller was
  killed (e.g. by the ctest timeout); the child then ran on as an
  orphan, with its shm segments and ipc files
- the new overload kills the child with SIGKILL after the timeout and
  logs the timeout in the captured output
- keep the old overload (no limit) for compatibility

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 17:00:01 +01:00
..
2021-10-08 09:42:28 +02:00
2021-01-25 13:46:40 +01:00
2017-05-23 13:42:56 +02:00
2021-01-25 13:46:40 +01:00
2021-01-25 13:46:40 +01:00
2021-01-25 13:46:40 +01:00
2021-01-25 13:46:40 +01:00
2021-01-25 13:46:40 +01:00

FairMQ Tools

Contains common tools for use by FairMQ and/or users.

fair::mq::tools::getHostIPs

Fills a map with the network interfaces and their IP addresses available on the current host.

Example usage

#include <map>
#include <string>
#include <iostream>

#include <fairmq/Tools.h>

void main()
{
    std::map<string,string> IPs;

    fair::mq::tools::getHostIPs(IPs);

    for (std::map<string,string>::iterator it = IPs.begin(); it != IPs.end(); ++it)
    {
        std::cout << it->first << ": " << it->second << std::endl;
    }
}
Example Output
eth0: 123.123.1.123
ib0: 123.123.2.123
lo: 127.0.0.1