diff options
author | Lennart Poettering <lennart@poettering.net> | 2016-12-24 00:30:49 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2017-02-03 11:51:57 +0100 |
commit | 578c03bce0816b21f00e4ef9734e5c1c1a63dcc6 (patch) | |
tree | b4f684d1b51eba5b45e94c3dbdec297afeddb01f /src/run | |
parent | 8f5c235d9e5f2e80cd2cf55c4585cddcdec5931b (diff) |
run: complain when --pty is used together with --no-block, which makes no sense
Diffstat (limited to 'src/run')
-rw-r--r-- | src/run/run.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/run/run.c b/src/run/run.c index 3e3116f235..df3b47af29 100644 --- a/src/run/run.c +++ b/src/run/run.c @@ -403,6 +403,11 @@ static int parse_argv(int argc, char *argv[]) { return -EINVAL; } + if (arg_pty && arg_no_block) { + log_error("--pty is not compatible with --no-block."); + return -EINVAL; + } + if (arg_scope && with_timer()) { log_error("Timer options are not supported in --scope mode."); return -EINVAL; |