Debian Bug report logs - #3206
rc terminates on CTRL-C

Package: rc; Maintainer for rc is Debian QA Group <packages@qa.debian.org>; Source for rc is src:rc (PTS, buildd, popcon).

Reported by: krs@caos.aamu.edu (Karl R. Sackett)

Date: Tue, 4 Jun 1996 14:18:04 UTC

Severity: normal

Merged with 24020

Done: unknown

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-devel@lists.debian.org:
Bug#3206; Package rc. (full text, mbox, link).


Acknowledgement sent to krs@caos.aamu.edu (Karl R. Sackett):
New bug report received and forwarded to list. (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Simon Shapiro <shimon@i-Connect.Net>:
Bug#3206; Package rc. (full text, mbox, link).


Acknowledgement sent to Lars Wirzenius <liw@iki.fi>:
Extra info received and forwarded to list. Copy sent to Simon Shapiro <shimon@i-Connect.Net>. (full text, mbox, link).


Message #10 received at 3206@bugs.debian.org (full text, mbox, reply):

From: Lars Wirzenius <liw@iki.fi>
To: 3206@bugs.debian.org
Subject: rc ctrl-c bug fix
Date: Wed, 20 Nov 1996 04:19:13 +0200
[Message part 1 (text/plain, inline)]
[ Please don't Cc: me when replying to my message on a mailing list. ]

Bug 3206 (from beginning of June): 

> Instead of interrupting a running process, rc exits when I send a
> CTRL-C.  If I'm using rc as my login shell this also kills the xterm
> window or telnet session I am using at the time.

The problem is that rc builds a list of signals from signal.h,
and the kernel moved the SIG* macros from linux/signal.h to
asm/signal.h. This is easily fixed by changing rc-1.4/Makefile;
old version:

	sigmsgs.c: mksignal
		sh mksignal /usr/include/linux/signal.h

new version:

	sigmsgs.c: mksignal
		sh mksignal /usr/include/asm/signal.h

I'm afraid I'm too lazy to provide a proper patch (or to fake
one by typing it in from the keyboard).

However, when I tried a test version of rc with this change,
I noticed that a ctrl-c is caught by the next command:

	1. Type "echo foo". It works.
	2. Type ctrl-c.
	3. Type "echo foo". No output (just empty line).
	4. Type "echo foo". It works.

Transcript:

	$ ./rc
	; echo foo
	foo
---->	; echo foo
	
	; echo foo
	foo
	; exit
	$ 

(ctrl-c typed before entering indicated command)

I haven't investigated this issue. It might be necessary to
rewrite rc's signal handling to POSIX (sigaction) instead of
broken old signal(2).

(I only looked at this bug because I wanted to see if I could
use rc as my interactive shell instead of bash, but it seems
I won't.)
	
-- 
Please read <http://www.iki.fi/liw/mail-to-lasu.html> before mailing me.
Please don't Cc: me when replying to my message on a mailing list.


[Message part 2 (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Simon Shapiro <shimon@i-Connect.Net>:
Bug#3206; Package rc. (full text, mbox, link).


Acknowledgement sent to kai@khms.westfalen.de (Kai Henningsen):
Extra info received and forwarded to list. Copy sent to Simon Shapiro <shimon@i-Connect.Net>. (full text, mbox, link).


Message #15 received at 3206@bugs.debian.org (full text, mbox, reply):

From: kai@khms.westfalen.de (Kai Henningsen)
To: 3206@bugs.debian.org
Subject: Re: Bug#3206: rc ctrl-c bug fix
Date: 20 Nov 1996 10:15:00 +0200
liw@iki.fi (Lars Wirzenius)  wrote on 20.11.96 in <m0vQ2Fu-000AjCC@liw>:

> The problem is that rc builds a list of signals from signal.h,

"They never learn". Far too many sources do this.

> I'm afraid I'm too lazy to provide a proper patch (or to fake
> one by typing it in from the keyboard).

There are two "right" ways to go about it.

One is to process the #include directives in the header file. However,  
you're still stuck with the problem if deciding just which stuff in there  
are signal names.

The other is playing it safe and have cc doing it for you. You need to  
compose a list of all signal names you might ever want to use. Then have a  
small program doing the following:


#include <signal.h>
#include <stdio.h>

int main(void)
{
  /* POSIX should define these */
  #ifdef SIGABRT
  printf("SIGABRT\t%d\n", (int)SIGABRT);
  #endif
  #ifdef SIGALRM
  printf("SIGALRM\t%d\n", (int)SIGALRM);
  ...
  /* stuff from Xyz Unix */
  #ifdef SIGSTRANGE
  printf("SIGSTRANGE\t%d\n", (int)SIGSTRANGE);
  ...

  return 0;
}

(Of course, you could even generate this program on-the-fly from a list of  
signal names.)

Then you can parse the output of this program, which should be a lot  
easier than parsing the include files.

MfG Kai


Information forwarded to debian-bugs-dist@lists.debian.org, Simon Shapiro <shimon@i-Connect.Net>:
Bug#3206; Package rc. (full text, mbox, link).


Acknowledgement sent to Lars Wirzenius <liw@iki.fi>:
Extra info received and forwarded to list. Copy sent to Simon Shapiro <shimon@i-Connect.Net>. (full text, mbox, link).


Message #20 received at 3206@bugs.debian.org (full text, mbox, reply):

From: Lars Wirzenius <liw@iki.fi>
To: 3206@bugs.debian.org
Subject: Re: Bug#3206: rc ctrl-c bug fix
Date: Thu, 21 Nov 1996 03:52:28 +0200
[Message part 1 (text/plain, inline)]
[ Please don't Cc: me when replying to my message on a mailing list. ]

Kai Henningsen:
> The other is playing it safe and have cc doing it for you. You need to  
> compose a list of all signal names you might ever want to use.

This doesn't work for a shell that needs to know all the signals
that are on a particular system.

-- 
Please read <http://www.iki.fi/liw/mail-to-lasu.html> before mailing me.
Please don't Cc: me when replying to my message on a mailing list.


[Message part 2 (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Simon Shapiro <shimon@i-Connect.Net>:
Bug#3206; Package rc. (full text, mbox, link).


Acknowledgement sent to kai@khms.westfalen.de (Kai Henningsen):
Extra info received and forwarded to list. Copy sent to Simon Shapiro <shimon@i-Connect.Net>. (full text, mbox, link).


Message #25 received at 3206@bugs.debian.org (full text, mbox, reply):

From: kai@khms.westfalen.de (Kai Henningsen)
To: 3206@bugs.debian.org
Subject: Re: Bug#3206: rc ctrl-c bug fix
Date: 21 Nov 1996 10:19:00 +0200
Hi Lars,
liw@iki.fi (Lars Wirzenius)  wrote on 21.11.96 in <m0vQOJe-000Ah0C@liw>:

> Kai Henningsen:
> > The other is playing it safe and have cc doing it for you. You need to
> > compose a list of all signal names you might ever want to use.
>
> This doesn't work for a shell that needs to know all the signals
> that are on a particular system.

It does, but it doesn't do it *completely* automatically: when your system  
gets new signal names, you have to add them to the source, if no other  
system had used them before (in which case they would already be in the  
source).

In case you can rely on having gcc, there's an option in the cpp to  
extract all the defines from a source (with includes, of course). This  
might be used to implement the first option.

The problem remains that doing cpp's work is hard to do right without  
actually using cpp.

MfG Kai


Information forwarded to debian-bugs-dist@lists.debian.org, Simon Shapiro <shimon@i-Connect.Net>:
Bug#3206; Package rc. (full text, mbox, link).


Acknowledgement sent to Simon Shapiro <Shimon@i-Connect.Net>:
Extra info received and forwarded to list. Copy sent to Simon Shapiro <shimon@i-Connect.Net>. (full text, mbox, link).


Message #30 received at 3206@bugs.debian.org (full text, mbox, reply):

From: Simon Shapiro <Shimon@i-Connect.Net>
To: 3206@bugs.debian.org
Subject: Re: Bug#3206: rc terminates on CTRL-C
Date: Mon, 04 Aug 1997 22:59:00 -0700 (PDT)
Sorry.  I never maintained this package and have ceased all Debian
activities for the longest time.

Simon

Hi Nag;  On 05-Aug-97 you wrote: 
> 
> Package: rc
> Message: overdue
> 
> This mail is being sent to you because the indicated bug report has been
> marked as overdue (i.e. if still open come the next release will have
> been
> open longer than 9 months).  Overdue reminders are repeated monthly.
> 
> 
> The history of this bug can be found at:
> 
>         http://www.cl.cam.ac.uk/users/iwj10/debian-bugs/db/3206.html
> or      http://www.debian.org/Bugs/db/3206.html
> 
> 
> For more information on the bug reporting system, visit:
> 
>         http://www.cl.cam.ac.uk/users/iwj10/debian-bugs/
> or      http://www.debian.org/Bugs/
> 
> 
> If this bug has been resolved recently, it probably means that the "nag"
> program has not received the latest bug-report status list.  Please do
> not
> report this unless these messages persist.
> 
> Please do not reply to the "nag" address unless there is a problem with
> the
> actual messages being generated or you have reasons why this should be
> taken
> off of the overdue list.  Reasons why this bug is not overdue should be
> copied to the bug system <3206@bugs.debian.org>.
> 


Information forwarded to debian-bugs-dist@lists.debian.org, debian-qa@lists.debian.org:
Bug#3206; Package rc. (full text, mbox, link).


Acknowledgement sent to Simon Shapiro <Shimon@i-Connect.Net>:
Extra info received and forwarded to list. Copy sent to debian-qa@lists.debian.org. (full text, mbox, link).


Message #35 received at 3206@bugs.debian.org (full text, mbox, reply):

From: Simon Shapiro <Shimon@i-Connect.Net>
To: 3206@bugs.debian.org
Subject: Re: Bug#3206: rc terminates on CTRL-C
Date: Tue, 02 Sep 1997 21:51:52 -0700 (PDT)
You must know I never supported that package and definitely the wrong
person to ask anything about that.  Right?

Hi Nag;  On 02-Sep-97 you wrote: 
>  
>  Package: rc
>  Message: overdue
>  
>  This mail is being sent to you because the indicated bug report has been
>  marked as overdue (i.e. if still open come the next release will have
>  been
>  open longer than 9 months).  Overdue reminders are repeated monthly.
>  
>  
>  The history of this bug can be found at:
>  
>          http://www.cl.cam.ac.uk/users/iwj10/debian-bugs/db/3206.html
>  or      http://www.debian.org/Bugs/db/3206.html
>  
>  
>  For more information on the bug reporting system, visit:
>  
>          http://www.cl.cam.ac.uk/users/iwj10/debian-bugs/
>  or      http://www.debian.org/Bugs/
>  
>  
>  If this bug has been resolved recently, it probably means that the "nag"
>  program has not received the latest bug-report status list.  Please do
>  not
>  report this unless these messages persist.
>  
>  Please do not reply to the "nag" address unless there is a problem with
>  the
>  actual messages being generated or you have reasons why this should be
>  taken
>  off of the overdue list.  Reasons why this bug is not overdue should be
>  copied to the bug system <3206@bugs.debian.org>.
>  

---


Sincerely Yours,           (Sent on 02-Sep-97, 21:39:24 by XF-Mail)

Simon Shapiro              Atlas Telecom
Senior Architect           14355 SW Allen Blvd., Suite 130 Beaverton OR
97005
Shimon@i-Connect.Net       Voice:  503.643.5559, Emergency: 503.799.2313


Information forwarded to debian-qa@lists.debian.org:
Bug#3206; Package rc. (full text, mbox, link).


Acknowledgement sent to remco@blaakmeer.student.utwente.nl (Remco Blaakmeer):
Extra info received and forwarded to maintainer. Copy sent to debian-qa@lists.debian.org. (full text, mbox, link).


Message #40 received at 3206-maintonly@bugs.debian.org (full text, mbox, reply):

From: remco@blaakmeer.student.utwente.nl (Remco Blaakmeer)
To: 3206-maintonly@bugs.debian.org
Subject: Old bugs need to be looked at
Date: Sun, 1 Feb 1998 12:00:20 +0100 (CET)
This is an automated message sent to all bugs older than one year.

This bug is very old. Please take a look at it and see if you can fix it.
If it has already been fixed, please close it.

If you have problems fixing it or if you don't have the time to fix it,
please ask the people on debian-devel@lists.debian.org for help, so that
at least the oldest bugs can be solved before Debian 2.0 is released.

Remco Blaakmeer


Merged 3206 24020. Request was from Raul Miller <rdm@test.legislate.com> to control@bugs.debian.org. (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Fri Apr 19 07:18:33 2024; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.