Posix isn't working, segfaults