hydra-queue-runner: Set a thread title for the builder threads

[?]
Jul 25, 2017, 1:58 PM
XZYFFHLQFQUQ5OM4WB7XRA5SSIXQM3ZOUFTNY5JTI6CNKQOKREXQC

Dependencies

  • [2] NKQOEVVP Get rid of "will retry" messages after "maybe cancelling..."
  • [*] MHVIT4JY Split hydra-queue-runner.cc more

Change contents

  • edit in src/hydra-queue-runner/builder.cc at line 9
    [4.221]
    [4.221]
    void setThreadName(const std::string & name)
    {
    #ifdef __linux__
    pthread_setname_np(pthread_self(), std::string(name, 0, 15).c_str());
    #endif
    }
  • edit in src/hydra-queue-runner/builder.cc at line 21
    [4.327]
    [2.0]
    setThreadName("bld~" + baseNameOf(reservation->step->drvPath));