Programming and posix getting started

22
Process Management - fork - 2
Compile & link sample program
> c89 -o forkt forkt.c
Program & user must have PH capability
c89 link adds PH capability by default to program
if -W option is used to add shared library,
must specify cap=ph
>c89 -o … -WL,cap=ph -W,XL=/lib/libsvipc.sl
Run sample program
> forkt
child: here
parent: here