bin/129378: [t]csh loses foreground process group

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <freebsd-gnats-submit@...>
Date: Tuesday, December 2, 2008 - 7:31 pm

>Number:         129378
Watt Consultants
FreeBSD wattres.Watt.COM 6.4-PRERELEASE FreeBSD 6.4-PRERELEASE #11: Mon Nov 24 12:04:45 PST 2008     root@wattres.Watt.COM:/usr/obj/usr/src/sys/WATTRES  i386

tcsh 6.15.00 appears to lose track of the foreground process group when SIGINT comes in during backquote expansion.  This problem does not show up with tcsh 6.14.00.

The symptom is that when I do a long-ish running task inside a `` expansion
that I then ^C, nobody gets the foreground process group...  I never get
a prompt back after the ^C, and ^T gets me

  load: 0.27 no foreground process group

Sending SIGCHLD and/or SIGCONT to the tcsh doesn't seem to make any
difference at all.

The tcsh is sitting in "pause" WCHAN, which seems sensible.  A truss
on tcsh reveals (oddly enough) that it's sitting in sigsuspend().
Sending it signals makes it loop through a wait4() call and go back into
sigsuspend().

It happens running either as root (from sudo) or as a regular user.  It
happens under xterm, under ssh sessions, and on a direct console login.

One portable reproduction:
# cd /usr/src
# less `egrep -lir '^Foo.*baz' *`
^Cload: 0.02 no foreground process group

(I typed ^C ^T)

SIGKILL to the shell seems to be the only way to get things back, and it does in your shell.

I also got a "me too" from my posting on -hackers about this which stated that a SIGHUP would also make the shell go away.

% cd /usr/src
% less `egrep -lir '^Foo.*baz' *`
^C^T
Use tcsh 6.14.00 (probably not a desirable workaround).

_______________________________________________
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscribe@freebsd.org"
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
bin/129378: [t]csh loses foreground process group, Steve Watt, (Tue Dec 2, 7:31 pm)