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 101667
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T00:48:56+00:00 2026-05-11T00:48:56+00:00

I found a bunch of scripts in the project I have been newly assigned

  • 0

I found a bunch of scripts in the project I have been newly assigned to that are the ‘shutdown’ scripts. They just do some basic searches and run the Unix kill command. Is there any reason they shouldn’t shutdown the process this way? Does this ensure that dynamically allocated memory will return properly? Are there any other negative effects? I’ve operated under an intuition that this is a last resort way of terminating a process.

  • 1 1 Answer
  • 2 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. 2026-05-11T00:48:57+00:00Added an answer on May 11, 2026 at 12:48 am

    The kill command sends a signal to a Unix process. That signal defaults to SIGTERM, which is a polite request for the program to exit.

    When a process exits for any reason, the Unix OS does clean up its memory allocations, file handles and other resources. The only resources that do not get cleaned up are those that are supposed to be shared, like the contents of files and of shared memory (like System V IPC).

    Many programs do not need to do any special cleanup on exit and use the default SIGTERM behavior, which is to let the OS stop the process.

    If a program does need special behavior, it can install a signal handler, and it can then run a function to handle the signal.

    Now the SIGKILL signal, which is number 9, is evil, but also necessary. This signal never gets to the process itself, the OS simple stops the process. This should only be used when really, really necessary. It often becomes necessary in multithreaded programs that get into deadlocks or programs that have installed a TERM signal handler, but screwed up during their exit process.

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

Sidebar

Related Questions

I have a bunch of Ruby 1.8.x scripts that require ftools. How can I
I found a bunch of other questions about this topic, but for some reason
I've just started using smarty but i have some problems to find a proper
My problem is that I have a bunch of file names without the version
I have a popup div that I need to load a bunch of different
I have a program using QtScript for some automation. I have added a bunch
I'm still learning Perl and CLASS::DBI. I have a script that does a bunch
I have an app that has a bunch of resources. Having read about javascript
I have been looking for a recursive checkout/checkin script, and everything that I have
Anyone know what this error means? after googling I found a bunch of sites

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.