Questions tagged [signal]

Questions about signals, a kind of interprocess communication.

Signals are a kind of interprocess communication on Unix-like operating systems, including Ubuntu.

Some signals can be handled or ignored by the program that receives them, if it is designed to do so. Others invariably terminate the program.

The kill, killall, and pkill commands send signals. By default they send SIGTERM, which allows the program to clean up. Commands like kill -KILL, or the equivalent kill -9, send SIGKILL, which cannot be ignored.

When programs crash, they are terminated by a signal, usually SIGSEGV ("Segmentation fault") or SIGABRT. Pressing Ctrl+C in a terminal sends SIGINT. This terminates most noninteractive programs (and programs whose interaction is not in a terminal, such as servers and graphical applications). Most interactive programs, especially shells, cancel the current operation and return the user to the program's primary (i.e. outermost) prompt, when SIGINT is received.

The signals SIGUSR1 and SIGUSR2 are traditionally used to provide limited interactivity with otherwise noninteractive programs. Using kill -USR1 on a running dd process to query its status was once very common, since dd prints out this information when it receives SIGUSR1. But a status=progress argument passed to dd has risen in popularity since becoming available.

There are numerous other signals not summarized above.

Most Bourne-style shells, including bash, provide a feature to handle signals in a shell script (or interactive shell session). The trap command registers signal handlers.

The tag may be used for questions about how to use, send, and handle signals; problems that appear to involve signals in an important way; and situations where signals are used.

The term "signal" is also used with various other meanings. For example, there is a secure messaging application called Signal. There is also the concept of "signal strength" in wireless networking and software-defined radio. Exactly which other tags should be used instead for these things--as well as when , , or both should be used--does not appear fully established.

69 questions
1
vote
1 answer

What do these Terminal Signals mean?

When I start to use a command to terminate an ongoing process, I can include a signal. What is the difference between the signal 9 and the signal 15?
user233233
  • 725
  • 1
  • 7
  • 8
1
vote
0 answers

Old version of Signal persists after update

Upon installing the latest version of Signal (6.16.0) the old and in-operable version (5.54.0) persists. Normally with other applications, the new version is installed and the old version is automatically removed.The old version that was installed…
1
vote
1 answer

Notification when some input (stdin, file, named pipe) is available?

is there some mechanism to be notified asynchronously when input from a 'file' is available? I have a program that cyclically does its work. So far so good. But there also is a serial line and whenever a message appears there the program shall react…
1
vote
1 answer

Signal messenger app not starting up

Over the past 2 weeks (after installing Ubuntu 18.04 from scratch) I have had problems on and off with the Signal messenger app. It sometimes doesn't start up at all. Uninstalling and reinstalling doesn't seem to help. I think this happened after…
obelix93
  • 161
0
votes
0 answers

On attempt to install Signal, I think I made some mistake and now getting some error in Ubuntu 20.04 LTS. How to correct this? Thank you

On sudo apt update command I get the following output: > sudo apt update [sudo] password for chess: Hit:1 http://ppa.launchpad.net/alexlarsson/flatpak/ubuntu focal InRelease Hit:2 https://download.mono-project.com/repo/ubuntu stable-bionic…
user1166730