(SEM_FAILED): Use 0 not NULL.