summaryrefslogtreecommitdiff
path: root/dtach.h
diff options
context:
space:
mode:
authorNed T. Crigler <crigler@users.sourceforge.net>2006-06-03 01:28:20 +0000
committerNed T. Crigler <crigler@users.sourceforge.net>2006-06-03 01:28:20 +0000
commit5f6d552d2cdb017e7934620770e2a8c535b41525 (patch)
tree46aee713ac957f2e3e012367dfc4a995aa3bbc2b /dtach.h
parent3b070abf7ad3f8e9787dc5c30b81e42b1d6121bc (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 'dtach.h')
-rw-r--r--dtach.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/dtach.h b/dtach.h
index 2ffd778..c7377df 100644
--- a/dtach.h
+++ b/dtach.h
@@ -116,8 +116,11 @@ struct packet
*/
#define BUFSIZE 4096
+/* This hopefully moves to the bottom of the screen */
+#define EOS "\033[999H"
+
int attach_main(int noerror);
-int master_main(char **argv);
+int master_main(char **argv, int waitattach);
#ifdef sun
#define BROKEN_MASTER