This is a strange line. We setup security attributes but later we don't use it.
Is it OK?
Shouldn't we pass the &sa to initIPC  call?