Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Linux, Apache, MySQL, PHP
  4. How to handle SIGKILL?

How to handle SIGKILL?

Scheduled Pinned Locked Moved Linux, Apache, MySQL, PHP
c++tutorialquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Divyang Mithaiwala
    wrote on last edited by
    #1

    I am developing application with C++ (g++). Is it possible to catch & handle signal SIGKILL? If yes then how? If no then why? I am able to catch & handle some other signals (like SIGTERM, SIGSEGV).


    Do not trust a computer... Always check what computer is doing regards, Divyang Mithaiwala Software Engineer

    J 1 Reply Last reply
    0
    • D Divyang Mithaiwala

      I am developing application with C++ (g++). Is it possible to catch & handle signal SIGKILL? If yes then how? If no then why? I am able to catch & handle some other signals (like SIGTERM, SIGSEGV).


      Do not trust a computer... Always check what computer is doing regards, Divyang Mithaiwala Software Engineer

      J Offline
      J Offline
      Jimmanuel
      wrote on last edited by
      #2

      Wikipedia[^]: "this signal cannot be caught or ignored" The OS needs a way to kill rogue processes that programmers can't circumvent. Otherwise it would be pretty easy for a programmer to either maliciously or accidentally lock up the OS.

      :Badger:

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups