I try to get the exit code from a child of a child process in the parent process. If the process goes in the while loop to fork again i don't get the ...
I try to get the exit code from a child of a child process in the parent process. If the process goes in the while loop to fork again i don't get the ...
This code snippet below does compiles, whereas this code snippet does not compile indeed with G++ 4.9.4: Here is what the compiler complains: ...
Looking at this post I do not understand Kaylum's answer. I have two questions. 1) S/he wants to use the variable "count" to count the total number o ...
I have to find the biggest value in an array of a 1000 numbers with 10 child processes (so that every one of them only checks a hundred values), and t ...
When compiling this code the last line of the else doesn't print and I don't know why. ...
I have this small program in c and I am trying to understand how it works, it is a simple while loop that uses fork() and wait() to print out a few li ...
I'm using PCNTL to multiprocess a big script in PHP on an ubuntu server. Here is the code ( simplified and commented ) The problem I'm facing is ab ...
I have the code below, but I need that exit(status) return a float but WEXITSTATUS doesn't receive a float cause status must be int, so what's the sol ...
I have a command and some input that when run on the command line will return an error, with an associated error code of 1: I am trying to catch th ...
I read this code in an implementation of the system function of unix (problem 8.22): I don't understand what the if condition is for here: Isn't th ...
I'm only a novice when it comes to bitwise math - if that's even the correct term - and was looking for a better way to do logic on an int-summed retu ...
As far as I know if waitpid returns -1 then it is error condition. How it possible to get success (EXIT_SUCCUSS) from child process in WEXITSTATUS(chi ...
I can just speak a little English so I hope you can understand what I said. I fork a child process , then I do ADD in child process. EX: 56+48=104 I ...
I have the helper function below, used to execute a command and get the return value on posix systems. I used to use popen, but it is impossible to ge ...