diff options
Diffstat (limited to 'src/shared/terminal-util.c')
-rw-r--r-- | src/shared/terminal-util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/terminal-util.c b/src/shared/terminal-util.c index f5b6590993..042b88f222 100644 --- a/src/shared/terminal-util.c +++ b/src/shared/terminal-util.c @@ -1009,7 +1009,7 @@ int get_ctty_devnr(pid_t pid, dev_t *d) { return -EIO; if (major(ttynr) == 0 && minor(ttynr) == 0) - return -ENOENT; + return -ENXIO; if (d) *d = (dev_t) ttynr; |