Opened 19 years ago

Last modified 17 years ago

#113 closed bug

Ctrl+C kills applications that shouldn't be killed — at Version 19

Reported by: genki@… Owned by: korli
Priority: critical Milestone: R1
Component: System/Kernel Version:
Keywords: Cc: diver, axeld, marcusoverhagen, bonefish
Blocked By: Blocking:
Platform: x86

Description (last modified by axeld)

Hello devs,

When you start a bunch of apps like this: Pulse & Screen &

And then hit Ctrl+C in the terminal the apps will be killed. In BeOS this only works when you start the application without the "&".

Change History (19)

comment:1 by genki@…, 19 years ago

I reinitialized my partition, installed-haiku and the problem went away.

Something must have been wrong with the system. Sorry about that.

comment:2 by genki@…, 19 years ago

Resolution: invalid

comment:3 by genki@…, 19 years ago

Status: newclosed

comment:4 by axeld, 19 years ago

I'd rather reopen this bug. There is definitely something wrong with the scope of the signals sometimes, at least I observed this behaviour as well in the past.

comment:5 by axeld, 19 years ago

Resolution: invalid

comment:6 by axeld, 19 years ago

Status: closedreopened

comment:7 by diver, 19 years ago

Cc: diver added

comment:8 by jackburton, 19 years ago

I found a very simple way to reproduce this:

  • Open Terminal.
  • Start "top" in the Terminal
  • Hit CTRL-C.

Terminal closes as well. Only top should exit, right ?

comment:9 by axeld, 19 years ago

Actually, those are different bugs. Originally, a control-C killed apps earlier started by the shell. That the Terminal is now closed then (you don't even have to run any app besides the shell in there) is a relatively young problem, probably be caused by the changes I made to the TTY driver.

comment:10 by johndrinkwater, 19 years ago

Ctrl+C behaviour appears to have been fixed recently in hrev17338; just adding a note.

comment:11 by korli, 19 years ago

the original problem (Ctrl+C kills backgrounds applications) seems fixed. the top problem described by Stefano remains.

comment:12 by axeld, 19 years ago

Cc: korli@… added

comment:13 by axeld, 19 years ago

Are you sure about that, J?r?me? I can't reproduce this anymore since the waitpid() fix.

comment:14 by korli, 19 years ago

Axel, I tested this morning with rev17381 linux image on VPC: When I hit Ctrl+C while top is running, the Terminal is closed. And about the same behavior without Ctrl+C, running "which ps" also closes the Terminal.

comment:15 by korli, 19 years ago

I deactivated a flag in revision 17431 which would cause bash to use sigsetjmp/ siglongjmp instead of setjmp/longjmp. At least on R5 it fixes the problem I had. I'll test on Haiku later. If the problem is fixed on Haiku as well, it would show a bug in our sigsetjmp/ siglongjmp implementation (see a new test app sigsetjmp_test.c).

comment:16 by korli, 19 years ago

Ok, I tested on Haiku, and the bug is still here. sigsetjmp_test succeeds on Haiku as well. Moreover I tested with Dano bash binary and it behaves the same as ours. I reverted my change in bash config.h.

comment:17 by nkoren@…, 18 years ago

I can confirm that this bug still exists, with an added twist -- once the terminal has been killed with a ctrl-C, it can't be reopened. This is happening with rev18509, running under Qemu.

comment:18 by JamesB192, 18 years ago

Component: System/KernelApplications
Platform: x86

A minor twist it seams that if you open a second window ctrl-c will not instantly kill off either terminal window. at least in build 18908.

comment:19 by axeld, 18 years ago

Description: modified (diff)
Owner: changed from axeld to korli
Priority: normalcritical
Status: reopenednew

Since I can only very rarely reproduce this, maybe Jérôme wants to own that bug for a while ;-)

Note: See TracTickets for help on using tickets.