in reply to Threads + opendir = Segmentation Fault (core dumped)

As well as what BrowserUk said, you should be using closedir to close a directory handle opened by opendir instead of close which works on filehandles instead.

  • Comment on Re: Threads + opendir = Segmentation Fault (core dumped)