summaryrefslogtreecommitdiffstats
path: root/sys-utils/setsid.c
Commit message (Collapse)AuthorAgeFilesLines
* misc: consolidate version printing and close_stdout()Karel Zak2019-04-161-4/+4
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* sys-utils: use errexec()Karel Zak2018-02-011-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* setsid: new option --forkKarel Zak2017-11-081-3/+8
| | | | | | | Let's make semantic more predictable. Addresses: https://github.com/karelzak/util-linux/issues/518 Signed-off-by: Karel Zak <kzak@redhat.com>
* misc: consolidate macro style USAGE_HELP_OPTIONSRuediger Meier2017-06-291-2/+2
| | | | | | | | | changed in include/c.h and applied via sed: sed -i 's/fprintf.*\(USAGE_MAN_TAIL.*\)/printf(\1/' $(git ls-files -- "*.c") sed -i 's/print_usage_help_options\(.*\);/printf(USAGE_HELP_OPTIONS\1);/' $(git ls-files -- "*.c") Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* misc: introduce print_usage_help_options()Ruediger Meier2017-06-271-2/+1Star
| | | | | | | | | | | | Consolidate --help and --version descriptions. We are now able to align them to the other options. We changed include/c.h. The rest of this patch was generated by sed, plus manually setting the right alignment numbers. We do not change anything but white spaces in the --help output. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* misc: never use usage(stderr)Ruediger Meier2017-06-261-5/+8
| | | | | | | Here we fix all cases where we have usage(FILE*) functions. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* Use --help suggestion on invalid optionKarel Zak2016-12-191-1/+1
| | | | | | | | The current default is to print all usage() output. This is overkill in many case. Addresses: https://github.com/karelzak/util-linux/issues/338 Signed-off-by: Karel Zak <kzak@redhat.com>
* misc: simplify if clauses [oclint]Sami Kerola2016-07-211-4/+2Star
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* setsid: fix argument count bugSami Kerola2016-03-141-1/+1
| | | | | | | | | The below demonstrates what happen before this change. $ setsid --wait setsid: child 3252 did not exit normally: Success Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* textual: add a docstring to most of the utilitiesBenno Schulenberg2015-01-061-0/+3
| | | | | | | | | This adds a concise description of a tool to its usage text. A first form of this patch was proposed by Steven Honeyman (see http://www.spinics.net/lists/util-linux-ng/msg09994.html). Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* setsid: add an option to wait child return valueDaniel Kahn Gillmor2013-08-011-5/+22
| | | | | | | | | | | | This change proposed in util-linux maillist by Damien Wyart in behalf of Daniel Kahn Gillmor. Sami Kerola changed the patch to use option rather than makign the default behavior of the command to change. Reported-by: Damien Wyart <damien.wyart@gmail.com> Reference: http://markmail.org/message/2z6qh5auk7wjie3l Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=495881 CC: Daniel Kahn Gillmor <dkg@fifthhorseman.net> Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* setsid: exit when control terminal cannot be setSami Kerola2013-04-261-1/+1
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* translation: unify exec error messagesSami Kerola2013-02-061-1/+1
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* textual: spell and encode the name of Arkadiusz Miƛkiewicz correctlyBenno Schulenberg2013-02-061-1/+1
| | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* setsid: fix off-by-one error in execvp callBernhard Voelker2012-06-151-1/+1
| | | | | | Bug introduced during --ctty implementation by v2.21-112-g8a2f04d. Signed-off-by: Bernhard Voelker <mail@bernhard-voelker.de>
* setsid: Include <sys/ioctl.h> instead of <termio.h>.Thomas Schwinge2012-05-291-1/+1
| | | | Signed-off-by: Thomas Schwinge <thomas@codesourcery.com>
* sys-utils: verify writing to streams was successfulSami Kerola2012-04-041-0/+2
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* setsid: cleanup usage()Karel Zak2012-03-201-8/+11
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* setsid: add option "-c" to set the controlling terminalHarald Hoyer2012-03-201-2/+16
| | | | | | [kzak@redhat.com: - use STDIN_FILENO rather than 0] Signed-off-by: Karel Zak <kzak@redhat.com>
* setsid: add "+" to getopt_long()Harald Hoyer2012-02-091-1/+1
| | | | | | | | | | | | otherwise setsid wants to interpret <program> arguments $ setsid sh -i setsid: invalid option -- 'i' Usage: setsid [options] <program> [arguments ...] Signed-off-by: Harald Hoyer <harald@redhat.com>
* setsid: add long options and fix coding styleSami Kerola2011-10-301-21/+52
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* Imported from util-linux-2.11b tarball.Karel Zak2006-12-071-4/+18
|
* Imported from util-linux-2.9v tarball.Karel Zak2006-12-071-1/+10
|
* Imported from util-linux-2.2 tarball.Karel Zak2006-12-071-0/+25