[fpc-pascal] FpWaitPid() multiplies status by 256

Anton Shepelev anton.txt at gmail.com
Sun Oct 7 12:26:21 CEST 2018


Marco van de Voort to Anton Shepelev:

> > may  return  the  status multiplied by 256?  If my child
> > process terminates with Halt(1), the status is  256,  if
> > with Halt(2), the status is 512, etc.
>
> Entirely  normal. Status is an opague format in POSIX, and
> there are macros to pry them apart.

Thank you.

-- 
Please, do not forward replies to my e-mail.



More information about the fpc-pascal mailing list