Commit graph

3 commits

Author SHA1 Message Date
Karel Zak
634446308f pipesz: fix dead code [coverity scan]
309                     if (!opt_quiet && n_opt_size > 1)
>>>     CID 378501:  Control flow issues  (DEADCODE)
>>>     Execution cannot reach this statement: "warnx(dcgettext(NULL, "usin...".
310                             warnx(_("using last specified size"));

Signed-off-by: Karel Zak <kzak@redhat.com>
2022-05-19 09:48:18 +02:00
Karel Zak
410b261cce pipesz: fix minor coding style issues
* remove tailing white spaces
* use {} for while()
* fix --help indention

Signed-off-by: Karel Zak <kzak@redhat.com>
2022-05-18 10:41:00 +02:00
Nathan Sharp
c221578e4b pipesz: add the pipesz utility
pipesz is a utility to examine and adjust the size of pipe buffers.

It uses fctnl F_GETPIPE_SZ and F_SETPIPE_SZ to examine and resize
these buffers. This functionality is unique to Linux and was added in
version 2.6.35. Minor bugfixes were made in 4.9, but these do not
obviate the use of pipesz prior to that release.

Signed-off-by: Nathan Sharp <nwsharp@live.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
2022-05-18 10:35:26 +02:00