9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: forsyth@plan9.cs.york.ac.uk forsyth@plan9.cs.york.ac.uk
Subject: ed buglet
Date: Fri, 11 Aug 1995 20:56:50 -0400	[thread overview]
Message-ID: <19950812005650.psJfpA1HwdIHqfFEtqgIKv7u2bLwXuz90jqKR7sZs84@z> (raw)

ed neither ignores nor delays interrupts during a shell escape.
try:

p9gate% diff old/ed.c /sys/src/cmd/ed.c
55a56
> int	waiting;
677c678
< 		if(rescuing)
---
> 		if(rescuing || waiting)
905a907
> 	int pid;
919c921
< 	if(fork() == 0) {
---
> 	if((pid = fork()) == 0) {
923c925,928
< 	wait(&w);
---
> 	waiting = 1;
> 	while(wait(&w) != pid)
> 		;
> 	waiting = 0;






                 reply	other threads:[~1995-08-12  0:56 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=19950812005650.psJfpA1HwdIHqfFEtqgIKv7u2bLwXuz90jqKR7sZs84@z \
    --to=forsyth@plan9.cs.york.ac.uk \
    /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).