[Xapian-tickets] [Xapian] #651: Avoid low fds
Xapian
nobody at xapian.org
Sat Dec 6 14:47:33 GMT 2014
#651: Avoid low fds
---------------------------+-----------------------------
Reporter: olly | Owner: olly
Type: enhancement | Status: assigned
Priority: normal | Milestone: 1.3.3
Component: Backend-Glass | Version:
Severity: normal | Resolution:
Keywords: | Blocked By:
Blocking: | Operating System: All
---------------------------+-----------------------------
Comment (by james):
OS X 10.10 runs without warnings until the `write(fd, "", 1)` line at
which point it exits with:
> Filesize limit exceeded: 25
This is SIGXFSZ (which also exists under linux), with ulimit -f (which I
think is RLIMIT_FSIZE?) unlimited (both soft & hard).
SIGXFSZ is part of the 4.2BSD spec and POSIX.1-2001. There doesn't seem to
be great documentation of this for OS X:
> A file I/O operation that would create a file larger that the process'
soft limit will cause the write to fail and a signal SIGXFSZ to be
generated; this normally terminates the process, but may be caught.
Stevens is possibly more helpful:
http://books.google.co.uk/books?id=kCTMFpEcIOwC&pg=PA925&lpg=PA925&dq=SIGXFSZ+mac+os+x&source=bl&ots=zvECZPZtkC&sig=8kbBKmpCO75jCRD98XieFkveoOY&hl=en&sa=X&ei=EhaDVMaBN8atU6SbhOAP&ved=0CDsQ6AEwBA#v=onepage&q=SIGXFSZ%20mac%20os%20x&f=false
--
Ticket URL: <http://trac.xapian.org/ticket/651#comment:5>
Xapian <http://xapian.org/>
Xapian
More information about the Xapian-tickets
mailing list