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:
Joachim Wiberg
2021-04-25 22:09:07 +02:00
parent be2ac1d1b1
commit 666cae6f49
+1 -1
View File
@@ -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)) {