9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* ed buglet
@ 1995-08-12  0:56 forsyth
  0 siblings, 0 replies; only message in thread
From: forsyth @ 1995-08-12  0:56 UTC (permalink / 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;






^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1995-08-12  0:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1995-08-12  0:56 ed buglet forsyth

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).