Commit graph

13 commits

Author SHA1 Message Date
Sami Kerola
af6d266307 setsid: exit when control terminal cannot be set
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-04-26 13:26:01 +02:00
Sami Kerola
07ff972eb6 translation: unify exec error messages
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-02-06 11:51:17 +01:00
Benno Schulenberg
b50945d4ac textual: spell and encode the name of Arkadiusz Miśkiewicz correctly
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2013-02-06 11:15:02 +01:00
Bernhard Voelker
b4479ffaa8 setsid: fix off-by-one error in execvp call
Bug introduced during --ctty implementation by v2.21-112-g8a2f04d.

Signed-off-by: Bernhard Voelker <mail@bernhard-voelker.de>
2012-06-15 11:42:43 +02:00
Thomas Schwinge
9766962478 setsid: Include <sys/ioctl.h> instead of <termio.h>.
Signed-off-by: Thomas Schwinge <thomas@codesourcery.com>
2012-05-29 10:11:43 +02:00
Sami Kerola
efb8854f4c sys-utils: verify writing to streams was successful
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-04-04 19:49:40 +02:00
Karel Zak
7c3c355fae setsid: cleanup usage()
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-03-20 09:28:38 +01:00
Harald Hoyer
8a2f04ddca setsid: add option "-c" to set the controlling terminal
[kzak@redhat.com: - use STDIN_FILENO rather than 0]

Signed-off-by: Karel Zak <kzak@redhat.com>
2012-03-20 09:22:54 +01:00
Harald Hoyer
37305c65e7 setsid: add "+" to getopt_long()
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>
2012-02-09 15:33:33 +01:00
Sami Kerola
cbfa325318 setsid: add long options and fix coding style
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2011-10-30 14:08:33 +01:00
Karel Zak
c07ebfa1e0 Imported from util-linux-2.11b tarball. 2006-12-07 00:25:46 +01:00
Karel Zak
7eda085c41 Imported from util-linux-2.9v tarball. 2006-12-07 00:25:39 +01:00
Karel Zak
6dbe3af945 Imported from util-linux-2.2 tarball. 2006-12-07 00:25:32 +01:00