mirror of
https://github.com/troglobit/finit.git
synced 2026-10-09 16:50:59 +07:00
service_start(): allow notty TTYs without device to start
A notty TTY can be declared with or without a device, it requires none. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
+1
-1
@@ -466,7 +466,7 @@ static int service_start(svc_t *svc)
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (svc_is_tty(svc)) {
|
||||
if (svc_is_tty(svc) && !svc->notty) {
|
||||
char *dev = tty_canonicalize(svc->dev);
|
||||
|
||||
if (!dev || !tty_exists(dev)) {
|
||||
|
||||
Reference in New Issue
Block a user