public inbox for frysk-cvs@sourceware.org help / color / mirror / Atom feed
From: mark@sourceware.org To: frysk-cvs@sourceware.org Subject: [SCM] master: Make sure all messages to user are flushed before first prompt. Date: Fri, 14 Mar 2008 11:41:00 -0000 [thread overview] Message-ID: <20080314114126.24990.qmail@sourceware.org> (raw) The branch, master has been updated via a3a186ec6145a6220443d1ece37956bd42e2dc31 (commit) from ca3e9c22f4a2362a49d8601672250f4de609a9ae (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email. - Log ----------------------------------------------------------------- commit a3a186ec6145a6220443d1ece37956bd42e2dc31 Author: Mark Wielaard <mwielaard@redhat.com> Date: Fri Mar 14 12:40:29 2008 +0100 Make sure all messages to user are flushed before first prompt. frysk-core/frysk/bindir/ChangeLog 2008-03-14 Mark Wielaard <mwielaard@redhat.com> * fhpd.java (CommandLine.run): Make sure all messages are flushed before first prompt. frysk-core/frysk/hpd/ChangeLog 2008-03-14 Mark Wielaard <mwielaard@redhat.com> * CLI.java (flushMessages): Make public and document for usage in fhpd. ----------------------------------------------------------------------- Summary of changes: frysk-core/frysk/bindir/ChangeLog | 5 +++++ frysk-core/frysk/bindir/fhpd.java | 4 ++++ frysk-core/frysk/hpd/CLI.java | 5 ++++- frysk-core/frysk/hpd/ChangeLog | 5 +++++ 4 files changed, 18 insertions(+), 1 deletions(-) First 500 lines of diff: diff --git a/frysk-core/frysk/bindir/ChangeLog b/frysk-core/frysk/bindir/ChangeLog index d36b218..7d51dfb 100644 --- a/frysk-core/frysk/bindir/ChangeLog +++ b/frysk-core/frysk/bindir/ChangeLog @@ -1,3 +1,8 @@ +2008-03-14 Mark Wielaard <mwielaard@redhat.com> + + * fhpd.java (CommandLine.run): Make sure all messages are flushed + before first prompt. + 2008-03-13 Stan Cox <scox@redhat.com> * TestFstack.java (getCanonicalAbsRootSrcDir): New. Use instead of diff --git a/frysk-core/frysk/bindir/fhpd.java b/frysk-core/frysk/bindir/fhpd.java index af1a5bc..aa8dca7 100644 --- a/frysk-core/frysk/bindir/fhpd.java +++ b/frysk-core/frysk/bindir/fhpd.java @@ -139,6 +139,10 @@ public class fhpd { LoadCommand.load(command, cli); } + // Make sure any messages logged by the Attach or Load commands + // are displayed to the user before the first prompt. + cli.flushMessages(); + try { do { line = reader.readLine(cli.getPrompt()); diff --git a/frysk-core/frysk/hpd/CLI.java b/frysk-core/frysk/hpd/CLI.java index a95bcdf..1d47869 100644 --- a/frysk-core/frysk/hpd/CLI.java +++ b/frysk-core/frysk/hpd/CLI.java @@ -337,7 +337,10 @@ public class CLI { } } - private void flushMessages() { + // Makes sure that all messages for the user by commands through + // addMessage() are displayed. Normally called after an update event + // or when a command has been executed before displaying a prompt. + public void flushMessages() { synchronized (messages) { for (Iterator iter = messages.iterator(); iter.hasNext();) { Message tempmsg = (Message) iter.next(); diff --git a/frysk-core/frysk/hpd/ChangeLog b/frysk-core/frysk/hpd/ChangeLog index 37bb0ab..7d2f463 100644 --- a/frysk-core/frysk/hpd/ChangeLog +++ b/frysk-core/frysk/hpd/ChangeLog @@ -1,3 +1,8 @@ +2008-03-14 Mark Wielaard <mwielaard@redhat.com> + + * CLI.java (flushMessages): Make public and document for usage + in fhpd. + 2008-03-13 Stan Cox <scox@redhat.com> * ListCommand.java (interpret): Use SysRoot. hooks/post-receive -- frysk system monitor/debugger
reply other threads:[~2008-03-14 11:41 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20080314114126.24990.qmail@sourceware.org \ --to=mark@sourceware.org \ --cc=frysk-cvs@sourceware.org \ --cc=frysk@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).