diff options
| author | Ned T. Crigler <crigler@users.sourceforge.net> | 2006-06-03 01:28:20 +0000 |
|---|---|---|
| committer | Ned T. Crigler <crigler@users.sourceforge.net> | 2006-06-03 01:28:20 +0000 |
| commit | 5f6d552d2cdb017e7934620770e2a8c535b41525 (patch) | |
| tree | 46aee713ac957f2e3e012367dfc4a995aa3bbc2b /main.c | |
| parent | 3b070abf7ad3f8e9787dc5c30b81e42b1d6121bc (diff) | |
Print an error message if we could not execute the desired command, instead of
exiting silently.
Also make sure the master process waits until the client attaches when using
the -A and -c modes, so that the error message has a chance of being seen.
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -243,10 +243,10 @@ main(int argc, char **argv) return attach_main(0); } else if (mode == 'n') - return master_main(argv); + return master_main(argv, 0); else if (mode == 'c') { - if (master_main(argv) != 0) + if (master_main(argv, 1) != 0) return 1; return attach_main(0); } @@ -256,7 +256,7 @@ main(int argc, char **argv) ** socket. */ if (attach_main(1) != 0) { - if (master_main(argv) != 0) + if (master_main(argv, 1) != 0) return 1; return attach_main(0); } |
