[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-bugs] #16274 [Tor]: Set the max open file value to the current limit if setrlimit() fails
#16274: Set the max open file value to the current limit if setrlimit() fails
----------------------+------------------------------------
Reporter: dgoulet | Owner:
Type: defect | Status: new
Priority: critical | Milestone: Tor: 0.2.7.x-final
Component: Tor | Version:
Keywords: | Actual Points:
Parent ID: | Points:
----------------------+------------------------------------
In `set_max_file_descriptors()`, if `setrlimit()` fails, we log warn and
bail out leaving the `max_out` pointer unset.
It should be set to the current value returned by `getrlimit()` before we
try to change it with `setrlimit()`.
Flagging this as critical because right now on commit
e48f8e5e87603812a6b1844a5fa27bbc44a3543e, if the
ed25519_master_id_public_key can't be opened, tor shuts down.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/16274>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs