* Replace `/bin/sleep` with just `sleep`, i.e. use environment variable `$PATH` to locate binary. * Replace `/usr/share/zoneinfo` with `$TZDIR` when it is defined, fallback to hardcoded path otherwise. This is the same behavior that Glibc2 normally have, see man 3 tzset.
This commit is contained in:
parent
0ead36dae6
commit
8ed3dac1dc
3 changed files with 4 additions and 4 deletions
|
|
@ -100,7 +100,7 @@ when defined(upcoming):
|
|||
{poStdErrToStdOut, poUsePath, poInteractive,
|
||||
poDemon})
|
||||
else:
|
||||
var process = startProcess("/bin/sleep", "", ["1"], nil,
|
||||
var process = startProcess("sleep", "", ["1"], nil,
|
||||
{poStdErrToStdOut, poUsePath})
|
||||
var fut = waitProcess(process)
|
||||
waitFor(fut or waitTimer(2000))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue