| 482 | } |
| 483 | |
| 484 | void kwsysProcess_SetTimeout(kwsysProcess* cp, double timeout) |
| 485 | { |
| 486 | if (!cp) { |
| 487 | return; |
| 488 | } |
| 489 | cp->Timeout = timeout; |
| 490 | if (cp->Timeout < 0) { |
| 491 | cp->Timeout = 0; |
| 492 | } |
| 493 | // Force recomputation of TimeoutTime. |
| 494 | cp->TimeoutTime.tv_sec = -1; |
| 495 | } |
| 496 | |
| 497 | int kwsysProcess_SetWorkingDirectory(kwsysProcess* cp, char const* dir) |
| 498 | { |