I don't understand very well this peace of code you wrote:
Code:
if(pid | pid1 == 0)//process A
This works as
Code:
if ( pid | (pid1 == 0) )
and I don't understand really well what is the idea, could clarify it?
The code above is a OR operation and the if sentence will be performed according its result right?
---------- Post updated at 05:18 PM ---------- Previous update was at 05:16 PM ----------
I don't understand very well this piece of code you wrote:
if(pid | pid1 == 0)//process A
This works as
if ( pid | (pid1 == 0) )
and I don't understand really well it this is the idea, could you clarify it?
The code above is a OR operation and the if sentence will be performed according its result, right?