Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8787749
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T21:58:04+00:00 2026-06-13T21:58:04+00:00

First of all, I do know that there was a similar question here in

  • 0

First of all, I do know that there was a similar question here in the past.

But that question wasn’t answered properly. Instead, it diverted into suggestion what to do to catch signals.

So just to clarify: I’ve done whatever needs to be done to handle signals.
I have an application that forks a daemon that monitors the main process through pipe.
If a main process crashes (e.g. segmentation fault), it has a signal handler that writes all the required info to pipe and aborts.

The goal is to have as much info as possible when something bad happens to the application, w/o messing with “normal” operation, such as SIGHUP, SIGUSR1, etc.

So my question is: which signals should I catch?
I mean signals that w/o me catching them would cause application to abort anyway.

So far I’ve come up with the following list:

  • SIGINT (^C, user-initiated, but still good to know)
  • SIGTERM (kill <pid> from shell or, AFAIK, can be result of OutOfMemory)
  • SIGSEGV
  • SIGILL
  • SIGFPE
  • SIGBUS
  • SIGQUIT

Does anybody know if I miss something? kill -l has lots of them… 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T21:58:05+00:00Added an answer on June 13, 2026 at 9:58 pm

    I’m looking at my copy of advanced programming the unix environment (Stevens). According to the table in the section on signals, the following POSIX signals will by default terminate the process, if you don’t catch them. It wouldn’t be unreasonable to monitor all of these that you don’t use:

    • SIGABRT
    • SIGALRM
    • SIGFPE
    • SIGHUP
    • SIGILL
    • SIGINT
    • SIGKILL
    • SIGPIPE
    • SIGQUIT
    • SIGSEGV
    • SIGTERM
    • SIGUSR1
    • SIGUSR2

    You can catch all of these except SIGKILL, but hopefully SIGKILL won’t come up very often for you.

    Note that your signal man page (man 7 signal) should give you the proper list for your system – this is the POSIX list, and may differ depending on your architecture.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

First of all I know similar questions has been asked here, I've checked but
First of all, I know there are a few quite similar questions here on
First of all, sorry for the too long question. I know that there are
First of all , I know there's a similar thread that tries to answer
First of all: I do know that there are already many questions and answers
First of all, I know that UDP is not a reliable protocol but I
I know there is more than one question out there that matches this, but
first of all, I know there are already a couple of posts here about
First of all sorry for the name of the title, but i dont know
I know that a similar problem was already discussed here: Why is VLookup in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.