ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Dmitry V. Levin" <ldv@altlinux.org>
To: ALT Linux Community general discussions <community@lists.altlinux.org>
Subject: Re: [Comm] dd - ошибка в help
Date: Sat, 21 Jan 2012 05:15:38 +0400
Message-ID: <20120121011538.GA17559@altlinux.org> (raw)
In-Reply-To: <4F1A0FB7.2010809@yandex.ru>

[-- Attachment #1: Type: text/plain, Size: 1254 bytes --]

Hi,

On Sat, Jan 21, 2012 at 04:07:03AM +0300, Speccyfighter wrote:
> Всем доброго времени суток!
> 
> Обнаружена ошибка в help к программе dd, 
> пакет coreutils.
> Ошибка затрагивает все версии программы 
> dd в код которой встроен help,
> англоязычный и русскоязычный help.
> 
> Получить help:
> 
> $ dd --help
> 
> Оригинальный текст:
> 
> Если послать работающему процессу dd 
> сигнал USR1, он напечатает на
> стандартный поток ошибок статистику 
> ввода/вывода и продолжит
> копирование.
> 
>   $ dd if=/dev/zero of=/dev/null& pid=$!
>   $ kill -USR1 $pid; sleep 1; kill $pid
>   18335302+0 входных записей
>   18335302+0 выходных записей
>   9387674624 байта (9.4 GB) скопировано, 34.6279 
>   секунды, 271 MB/s
> 
> Документация к программе kill гласит:
> 
> $ info kill
> ...
> The default signal to send if none is specified is `TERM'.
> 
> 
> Приведённая в help строка
> 
>   $ kill -USR1 $pid; sleep 1; kill $pid
> 
> после исполнения завершает, а не 
> продолжает
> процесс.

Это пример.  В нем "kill -USR1 $pid" демонстрирует, как dd выводит
статистику, а второй kill завершает процесс dd, который в противном
случае продолжал бы работать.  Таким образом, ошибки в тексте нет.


-- 
ldv

[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]

  reply	other threads:[~2012-01-21  1:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-21  1:07 Speccyfighter
2012-01-21  1:15 ` Dmitry V. Levin [this message]
2012-01-21  3:46   ` Speccyfighter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120121011538.GA17559@altlinux.org \
    --to=ldv@altlinux.org \
    --cc=community@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git