linux-assembly.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: willy meier <phpr@mail.china.com>
To: linux-assembly@vger.kernel.org
Cc: linux-assembly@mlists.in-berlin.de, linuxassembly@evobsyniva.com
Subject: Re: Orphaned Processes and TCSETSW
Date: Fri, 17 Oct 2003 18:18:10 +0100	[thread overview]
Message-ID: <3F902452.1AED8FE7@yahoo.co.uk> (raw)
In-Reply-To: oprwydvy0ylmcbdf@smtp-server.woh.rr.com

linuxassembly@evobsyniva.com wrote:
> 
> I've made a new program for Softer, and when it starts up, if it's not run under Softer it will start Softer itself, so that people can just type 'gpsmap' instead of 'softer gpsmap'.  It works well, until it exits.  Upon exit, Softer gives this error message:
> 
> Error calling TCSETSW to restore settings.
	[ ... ]
> 
>         shell -> gpsmap -> softer
> 
> And if gpsmap exits first, there's a link missing in the chain.  If I execute it with 'softer gpsmap' then it's like this:
> 
>         shell -> softer -> gpsmap
> 
> And there's never any problem regardless of which exits first.
> 
> If I can't find a solution to the problem, I'll probably just make it call wait on Softer to make sure Softer exits first, but I'd rather fix the problem than just work around it.
> 
> Any suggestions?  Anyone know more than I do about this controlling terminal orphaned background process group stuff?

your problem may be due to interleaved saveing/restoreing of the rsp.
console state.

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.
many programs apparently save, modify and (attempt to) restore console
state!
I'd encounter that problem with 'less' and 'lib4th'/'F4'.


best,
	hp


-- 
Linux,Assembly,Forth: http://www.lxhp.in-berlin.de/index-lx.shtml
  >> xxxx -at- lxhp -dot- in-berlin -dot- de <<

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

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-12 23:22 Orphaned Processes and TCSETSW linuxassembly
2003-10-17 17:18 ` willy meier [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-10-17 17:22 correction: Re: Orphaned Processes and TCSETSW] willy meier
2003-10-17 21:37 ` Orphaned Processes and TCSETSW Philip Jacob Smith
2003-10-19 16:08   ` willy meier
2003-10-19 19:50     ` Philip Jacob Smith
2003-10-20 11:38       ` 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=3F902452.1AED8FE7@yahoo.co.uk \
    --to=phpr@mail.china.com \
    --cc=linux-assembly@mlists.in-berlin.de \
    --cc=linux-assembly@vger.kernel.org \
    --cc=linuxassembly@evobsyniva.com \
    /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).