You are not logged in.

#1 2005-11-18 15:44:04

Komodo
Member
From: Oxford, UK
Registered: 2005-11-03
Posts: 674

What is a BREAK signal?

An easy question for someone more knowledgeable than me: What is a break signal? I'm customising Screen, and can't find an answer to this Q anywhere.


.oO Komodo Dave Oo.

Offline

#2 2005-11-18 15:48:13

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: What is a BREAK signal?

Break signal is SIGBRK (same as SIGABRT = abort signal).  It's signal #6 according to the the C headers.

If you need to send it to a process, you can do:

# kill -6 $pid

Offline

#3 2005-11-18 20:05:33

Komodo
Member
From: Oxford, UK
Registered: 2005-11-03
Posts: 674

Re: What is a BREAK signal?

What does it actually do though, phrakture? Is it just one particular way of halting whatever process you send the signal to?


.oO Komodo Dave Oo.

Offline

#4 2005-11-18 20:42:03

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: What is a BREAK signal?

ion_prefect wrote:

What does it actually do though, phrakture? Is it just one particular way of halting whatever process you send the signal to?

Hmm, by default I believe it just kills the process, but developers can specifically handle SIGBRK (the only ones you can't catch are SIGKILL and SIGSTOP) - I can make an app that catches SIGBRK and spits out a smiley face if I so wanted.

So yes it *can* kill a process, but it's not always true.

Offline

#5 2005-11-18 23:31:24

Komodo
Member
From: Oxford, UK
Registered: 2005-11-03
Posts: 674

Re: What is a BREAK signal?

Okley-Dokley, I understand now smile


.oO Komodo Dave Oo.

Offline

Board footer

Powered by FluxBB