Skip to content

Commit 7de17c5

Browse files
committed
use $! for the dd process
1 parent a698bd3 commit 7de17c5

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

signals.tex

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@
4343
like this:
4444

4545
\begin{verbatim}
46-
$ kill -USR1 $(pgrep -f "dd if=/dev/zero of=/dev/null")
46+
$ dd if=/dev/zero of=/dev/null &
47+
$ kill -USR1 $!
4748
\end{verbatim}
4849

4950
You will see something like this:
@@ -53,9 +54,6 @@
5354
9179287+0 records in
5455
9179286+0 records out
5556
4699794432 bytes (4.7 GB, 4.4 GiB) copied, 1.79083 s, 2.6 GB/s
56-
14211424+0 records in
57-
14211423+0 records out
58-
7276248576 bytes (7.3 GB, 6.8 GiB) copied, 2.76889 s, 2.6 GB/s
5957
\end{verbatim}
6058
\end{itemize}
6159

0 commit comments

Comments
 (0)