diff options
author | Balint Reczey <balint@balintreczey.hu> | 2013-08-19 14:08:51 +0200 |
---|---|---|
committer | Balint Reczey <balint@balintreczey.hu> | 2013-08-19 14:08:51 +0200 |
commit | d5cd7064f55df4b18a4d9fbf97cb7d57ea4c07df (patch) | |
tree | 22471e5176da651dc3a463d7bda88d9ac31cf42b /man | |
parent | bfd4b9f5f39347f98fba32dd71a39627bce8ff95 (diff) | |
download | faketime-ng-d5cd7064f55df4b18a4d9fbf97cb7d57ea4c07df.tar.gz |
Use the same global clock for all processes spawned by faketime -f '... iN'
In case the clock is set to advance with each faked time(), etc. call, the
counter uses the same clock counter stored in shared memory and protected
by a semaphore.
Diffstat (limited to 'man')
-rw-r--r-- | man/faketime.1 | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/man/faketime.1 b/man/faketime.1 index 98c1b59..0d9323b 100644 --- a/man/faketime.1 +++ b/man/faketime.1 @@ -32,7 +32,9 @@ faketime 'last Friday 5 pm' /bin/date faketime '2008-12-24 08:15:42' /bin/date faketime -f '+2,5y x10,0' /bin/bash -c 'date; while true; do echo $SECONDS ; sleep 1 ; done' faketime -f '+2,5y x0,50' /bin/bash -c 'date; while true; do echo $SECONDS ; sleep 1 ; done' -faketime -f '+2,5y i2,0' /bin/bash -c 'date; while true; do echo $SECONDS ; sleep 1 ; done' +faketime -f '+2,5y i2,0' /bin/bash -c 'while true; do date ; sleep 1 ; done' +In this single case all spawned processes will use the same global clock without restaring it at the start of each process. + (Please note that it depends on your locale settings whether . or , has to be used for fractional offsets) .fi .SH ADVANCED TIMESTAMP FORMAT |