I have written a server in perl, waiting for tcp connections. Every time the server receives one, it forks a new child in charge of it and continues listening for another connection.( And so it cannot wait for the SIGCHILD. ) The child does what it is supposed to do and exits, but continues to "live" as a zombie. What is the solution please ?
1
There are 1 best solutions below
Related Questions in PERL
- Perl Command Line Interpreter crashing on exit
- Perl Regex: Merge multiple one-character substrings
- Syntax error in Perl open
- Need help in understanding perl tr command with /d
- Referencing a Schema's table batch/perl
- Retrieving filtered list of files using template toolkit
- “Badly placed ()'s” error when running loc command
- getting google contacts using shuttlecloud
- Perl Module using %EXPORT_TAGS
- get all possible permutations of words in string using perl script
- Can't locate DBI.pm in @INC with Perl
- split string into several substring using indexes
- How to find strings between two specified texts
- Getting a json from a server and assigning it to a variable
- Is there anyway to plot timeline charts in excel sheets using Spreadhseet::WriteExcel module in Perl?
Related Questions in FORK
- Drawing with ncurses, sockets and fork
- Switch parent and child process
- python forked processes not executing with os.execlp
- Messing with signals, pipes and forks in C
- fork()ing with c++ and creating 4 childs of a parent
- How to control the thread of child process
- Error running this fork code in my eclipse, and also have some concept confusion around this code
- How to tell if child Node.js Process was from fork() or not?
- correct output for this fork concept in C
- Publish fork of GitHub project to new NPM module but keep option to merge with original?
- Program stuck on Pipe (exec ls grep sort)
- How to prevent child from interfering with parent's stdin after fork()
- C++ Fork child, ask child for process list, kill a process in Linux
- How merge 2 github repository to trigger a pullrequest?
- How many processes this Program Creates
Related Questions in ZOMBIE-PROCESS
- python multi-processing zombie processes
- Which process terminates first ? Child or Parent?
- Why are zombie processes invisible when doing ps -f on mac?
- Dealing with Zombie PHP processes on shared hosting
- Can't cleanup a zombie process whose parent is init
- Can this C code create zombie processes?
- Zombie process vs Orphan process
- Zombie process and fork
- Objective-C Object gone due to memory management in NSMutableArray
- python multiprocessing: why is process defunct after terminate?
- Getting rid of zombies in perl
- How to prevent creation of zombie processes while using fork() and exec() in Linux?
- R zombie processes
- Parent Process exit when using sigaction(SIGCHLD, &sigchld_action, NULL)
- How to deal with zombie processes whose threads are still running
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Set
$SIG{CHLD} = 'IGNORE';to have the system handle them for you automatically.Or set
$SIG{CHLD}to a subroutine andwaitpid:If you really want to understand how it works (of course you do! :), you should read perlipc
There is also more info here on Stack Overflow