In our previous episode, Anton Shepelev said:
> may  return  the status multiplied by 256?  If my child pro-
> cess 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.

In Free Pascal those become inline functions, but the result is the same.
Consult man pages or freepascal documentation:

https://www.freepascal.org/docs-html/rtl/baseunix/wexitstatus.html
(note also the see also links which lists some of the other macros)
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to