diff options
| author | Mateusz Piotrowski <0mp@FreeBSD.org> | 2021-10-21 11:06:45 +0000 |
|---|---|---|
| committer | Mateusz Piotrowski <0mp@FreeBSD.org> | 2021-10-24 16:33:37 +0000 |
| commit | c1c3ef8ef84b49f3a4db0fc2953db30c75235292 (patch) | |
| tree | 7b0e703d25c8262f1d3c49fb5795b5356296d010 /usr.bin/timeout/timeout.1 | |
| parent | 010e3bc772753e282ccbf12df3600f6d1a33d3fe (diff) | |
Diffstat (limited to 'usr.bin/timeout/timeout.1')
| -rw-r--r-- | usr.bin/timeout/timeout.1 | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/timeout/timeout.1 b/usr.bin/timeout/timeout.1 index b9613128755e..843c6215cc80 100644 --- a/usr.bin/timeout/timeout.1 +++ b/usr.bin/timeout/timeout.1 @@ -26,7 +26,7 @@ .\" .\" $FreeBSD$ .\" -.Dd July 7, 2020 +.Dd October 21, 2021 .Dt TIMEOUT 1 .Os .Sh NAME @@ -161,7 +161,7 @@ $ echo $? .Pp Same as above but preserving status. Exit status is 128 + signal number (15 for -.Va SIGTERM ) +.Va SIGTERM ) : .Bd -literal -offset indent $ timeout --preserve-status 2 sleep 4 $ echo $? @@ -171,7 +171,7 @@ $ echo $? Same as above but sending .Va SIGALRM (signal number 14) instead of -.Va SIGTERM +.Va SIGTERM : .Bd -literal -offset indent $ timeout --preserve-status -s SIGALRM 2 sleep 4 $ echo $? @@ -189,8 +189,8 @@ signal after 1 minute and send a .Va SIGKILL signal 5 seconds later if the process refuses to stop: .Bd -literal -offset indent -timeout -k 5s 1m fetch \\ -https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/book.html +$ timeout -k 5s 1m fetch \\ +> https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/book.html .Ed .Sh SEE ALSO .Xr kill 1 , |
