linux-assembly.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Philip Jacob Smith <pj@evobsyniva.com>
To: linux-assembly@vger.kernel.org
Subject: Re: Orphaned Processes and TCSETSW
Date: Fri, 17 Oct 2003 17:37:57 -0400	[thread overview]
Message-ID: <oprw7idjuab2epmx@localhost> (raw)
In-Reply-To: <3F902542.705ADCA4@yahoo.co.uk>


> i.e. let program-1 save the console state, then modify; now program-2
> starts & saves current state & modifies... which would restore _only_ if
> the jobs would terminate in the same sequence as they were started.
> 		            		^-- REVERSED (i.e. last restores first)
> many programs apparently save, modify and (attempt to) restore console
> state!

Yes, I think this is related.  Program-1 (gpsmap) doesn't modify any terminal settings, but rather it executes program-2 (softer) to do it, but I think the kernel may have something built into it to prevent what you described from happening, and so when it sees program-1 exit it disallows program-2 from changing the terminal settings under the expectation that it doing so would mess things up.  However, that's not the case this time, and in fact not allowing Softer to change the settings messes things up.

It's also possible that you can't change the settings when a program is currently blocking while reading the terminal, and since gpsmap exits, bash begins reading the terminal, and Linux then isn't able to allow Softer to change the settings while bash is reading.  I think I'm out of luck if that's the case.

- Pj

--- special one time signature line ---
(yes, blatant off-topic advertising)

Sucko's, the operating system so cool it...err...
(I don't want to use bad words on a public mailing list.)
http://www.evobsyniva.com/suckos/
It's probably a good thing it doesn't actually exist.


  reply	other threads:[~2003-10-17 21:37 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-17 17:22 correction: Re: Orphaned Processes and TCSETSW] willy meier
2003-10-17 21:37 ` Philip Jacob Smith [this message]
2003-10-19 16:08   ` Orphaned Processes and TCSETSW willy meier
2003-10-19 19:50     ` Philip Jacob Smith
2003-10-20 11:38       ` willy meier
  -- strict thread matches above, loose matches on Subject: below --
2003-10-12 23:22 linuxassembly
2003-10-17 17:18 ` willy meier

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=oprw7idjuab2epmx@localhost \
    --to=pj@evobsyniva.com \
    --cc=linux-assembly@vger.kernel.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: link
Be 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 NNTP newsgroup(s).