summaryrefslogtreecommitdiff
path: root/src/daemontools-extras/s6-setsid.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2015-03-05 14:07:48 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2015-03-05 14:07:48 +0000
commit3cfff1b2a83ab4324882e21024c2ac03c41b0349 (patch)
tree025fac36147f71344ac58cf6784e5de30706e7ba /src/daemontools-extras/s6-setsid.c
parent19590f4157aefc706db79356e3134a34d6e2c8b0 (diff)
downloads6-3cfff1b2a83ab4324882e21024c2ac03c41b0349.tar.xz
- Fix -d option to s6-setsidv2.1.2.0
- Version: 2.1.2.0
Diffstat (limited to 'src/daemontools-extras/s6-setsid.c')
-rw-r--r--src/daemontools-extras/s6-setsid.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/daemontools-extras/s6-setsid.c b/src/daemontools-extras/s6-setsid.c
index 51de048..609b041 100644
--- a/src/daemontools-extras/s6-setsid.c
+++ b/src/daemontools-extras/s6-setsid.c
@@ -19,7 +19,7 @@ int main (int argc, char const *const *argv, char const *const *envp)
subgetopt_t l = SUBGETOPT_ZERO ;
for (;;)
{
- register int opt = subgetopt_r(argc, argv, "sbfgiIqt:", &l) ;
+ register int opt = subgetopt_r(argc, argv, "sbfgiIqd:", &l) ;
if (opt == -1) break ;
switch (opt)
{
@@ -30,7 +30,7 @@ int main (int argc, char const *const *argv, char const *const *envp)
case 'i' : insist = 2 ; break ;
case 'I' : insist = 1 ; break ;
case 'q' : insist = 0 ; break ;
- case 't' : if (!uint0_scan(l.arg, &ctty)) dieusage() ; break ;
+ case 'd' : if (!uint0_scan(l.arg, &ctty)) dieusage() ; break ;
default : dieusage() ;
}
}