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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T03:15:54+00:00 2026-05-22T03:15:54+00:00

i have a question about signals and how they being handled when there is

  • 0

i have a question about signals and how they being handled when there is a sql command running. Particularly, i have a python script that runs as a process and inside it another process is being created. After that a data base check is being run and inside that database check a tables column NULLEGE attribute is being altered. i must say that table is fairly big … as in GBs big and it gets bigger.
when i send send a term signal to the main process (the one that runs the database check) the second process that is created inside that main process should also terminate. well … that happens at all times minus when the database check is doing that NULLEGE attribute alteration. when that is being done the main process terminates but somehow the signal handler is being ignored (doesn’t enter the function handling the signal) and thus no SIGTERM is being sent to the process created inside the main one. and that is how i am being left with one stuck process.

My question: is there a way to block signals (as in queuing them) while the database check is being ran or is there another way of sending the TERM signal to the second process using python ? i have successfully altered the bash script that launches the python script as a process to do a check and send SIGTERM to the left process after the main process terminates … but i would prefer not handling it this way.

or is there a way of interrupting the database check ?

ps: for database handling the sqlalchemy is being used under python 2.6 on ubuntu linux.

  • 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-05-22T03:15:55+00:00Added an answer on May 22, 2026 at 3:15 am

    Your MySQL command is a C-call, which blocks the Python interpreter.

    The cleanest way is probably to use the “show processlist” and “kill” commands from mysql or mysql-python before you send TERM.

    See here:
    http://www.techrepublic.com/article/how-to-examine-and-kill-mysql-client-processes/5211762

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

Sidebar

Related Questions

I have a question about using os.execvp in Python. I have the following bit
I have a question about this question . I posted a reply there but
I am using the boost library and my question is about boost::signals. I have
My question is: are there minimisation algorithms, preferably implemented in Python, that can operate
I have question about NSView: Imagine a Custom View where the mouseDown, mouseDrag and
I have question about normalization. Suppose I have an applications dealing with songs. First
I have a question about using streams in .NET to load files from disk.
I have a question about best practices regarding how one should approach storing complex
I have a question about locking. This doesn't have to be only about record
I have a question about how to deploy WPF application into a PC without

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.