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

  • Home
  • SEARCH
  • 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 6197009
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T03:44:44+00:00 2026-05-24T03:44:44+00:00

I have a C application that spawns children using fork/exec. My spawn-process runs non-stop

  • 0

I have a C application that spawns children using fork/exec. My spawn-process runs non-stop and it creates a log file using a unix pipe. Every 24 hours I want to backup the logs. For this I’m using a script. Once the script has finished, I want to kill and restart the process. So far so good. But there might be the case that there a still spawned children active. Is it possible to disown them before killing and restarting the spawn process?

Usually, when the parent gets killed, all the children are immediately killed also.

  • 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-24T03:44:45+00:00Added an answer on May 24, 2026 at 3:44 am

    A process doesn’t just die when its parent dies. Most likely, your children processes are receiving some signal (SIGHUP ?) for some reason.

    If you want your children to persist, you need to find out what that signal is and ignore it right after fork.

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

Sidebar

Related Questions

I have a C linux application (A) that spawns another process (P) when it
I have a main application that spawns a seperate thread to process messages off
I have application that brings response via Ajax and creates 5-20 new jQuery click
I have a simple application with a manager thread that spawns ten simple worker
I have a local scientific application that uses threads to process independent pieces of
I have an MFC application that spawns a number of different worker threads and
I noticed that my java application (runs on tomcat6) spawns a lot of threads
I have an application that spawns multiple child processes. Before launching a child, I
I have an application that spawns a GTK+ dialog. When running from the terminal,
I currently have an application that spawns multiple instances of a single win form.

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.