Yes ...I have passed a file descriptor to the function.
:: close(fd);
But it only yielded segmentation fault.
Yes ...I have passed a file descriptor to the function.
:: close(fd);
But it only yielded segmentation fault.
ok. show us more code, please.
(Have you tried a debugger to check the crash is related to that close() call?)
Bookmarks