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 Regex for converting query strings
- Cross compiling perl for Android ld.lld: error: unable to find library -lpthread
- Regexp to remove small numbers and leave large ones
- `df` command not capturing entire output in perl
- Webmin CentOS7 AWS backup errors - perl(S3::AWSAuthConnection) can't be installed
- How to ignore perm errors with Path::Tiny 'visit'? (Windows)
- Why does setting `*\` to a scalar (string) reference not result in auto printing
- Regex for deconstructing SQL where statement
- Random characters in DS record from Net::DNS:RR when calling print/string
- Perl with Selenium: cannot save the Web page with Ctrl+S
- openssl pbkdf2 and perl
- Strawberry Perl using a separate winlibs distro
- Perl / Undefined value as a HASH reference when running SNMP queries
- Timestamp with timezone: works with isql but not with DBD::Firebird
- Slurping a file ... syntax error - example from perldoc
Related Questions in FORK
- Forking vs Cloning in GitHub
- Execute JUnit suite with Maven Fork in Customized runOrder
- Multiple child processes accessing the same vector
- Parent process doesn't wait for the child process to terminate
- Implementation Bash pipes and redirections in c
- Why is fork() accepted in strace if the actual syscall is clone()?
- Which child will execute first when you call fork() and wait() multiple times?
- intercommunicating using stdin and stdout between forked C processes
- Ant Junit ForkMode with Suites
- How to enable a PR originating from a forked repo to cause a GitHub workflow to push to a branch (gh-pages) in the original repo?
- Executing sed via execvp makes other pipes blocked
- Python progress bar in conjunction with fork processes
- Race condition in pipe/dup2/exec*
- Git how to pull the update from original repository and keep my own changes
- Using SQLite as object store in a forking web server; can it be done safely?
Related Questions in ZOMBIE-PROCESS
- How can i kill ppid=1 zombie process with postgresql16?
- Why does a zombie process consume a large amount of CPU resources?
- Many zombie processes and they are all mongosh from Docker
- Problems with Starman workers
- How to deal with zombie processes whose threads are still running
- Parent Process exit when using sigaction(SIGCHLD, &sigchld_action, NULL)
- R zombie processes
- Prevent page creation automatically from wander.php WordPress
- p.join() is not waiting and going to zombie in multi-processing
- Why is the child process a zombie after kill() it
- Why am I seeing ZombieProcess exceptions when running Python tests with nox on MacOS?
- Are zombie processes picked up by init eventually or not?
- Background Cronjobs are turning into Zombie processes
- Can I reap child processes with a detached thread?
- Roblox tds game
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 # Hahtags
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