Ticket #4630: mythtv-silence_ping_error.patch

File mythtv-silence_ping_error.patch, 730 bytes (added by sphery <mtdean@…>, 13 years ago)
  • libs/libmyth/util.cpp

     
    744744    VERBOSE(VB_SOCKET, "Ping: done");
    745745    return true;
    746746#else
    747     QString cmd = QString("ping -t %1 -c 1  %2  >/dev/null")
     747    QString cmd = QString("ping -t %1 -c 1  %2  >/dev/null 2>&1")
    748748                  .arg(timeout).arg(host);
    749749
    750750    if (myth_system(cmd))
    751751    {
    752752        // ping command may not like -t argument. Simplify:
    753753
    754         cmd = QString("ping -c 1  %2  >/dev/null").arg(host);
     754        cmd = QString("ping -c 1  %2  >/dev/null 2>&1").arg(host);
    755755
    756756        if (myth_system(cmd))
    757757            return false;