Skip to content

[Ubuntu] How to fix glib warning **: poll(2) failed due to: invalid argument.

jam231 edited this page Apr 1, 2014 · 1 revision

Clean installation of ubuntu limits number of socket descriptors held. You can check the limit by typing ulimit -n in the terminal. Mine is 1024. What you need to do is heighten the limit.

  1. Open /etc/security/limits.conf
  2. Add the following two lines to the limits.conf: soft nofile 10000 hard nofile 100000
  3. Reboot
  4. Check ulimit -n. Should be 10000.
Clone this wiki locally