Re: close() and EINTR

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* Pali Rohár:

> In close(2) manpage is specified that close() syscall may return EINTR
> error with reference to signal(7) manpage.
>
> But signal(7) manpage does not specify that close() syscall may be
> interrupted and fails with EINTR.
>
> So, can close() syscall be really interrupted or not? If yes then
> signal(7) manpage should be updated as it is referenced by close(2).

On Linux, close can fail with EINTR, but it will eventually perform
the actual nevertheless.  So you must not retry to close the same
descriptor again.



[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux