{"action":"created","issue":{"url":"https://api.github.com/repos/systemd/systemd/issues/3775","repository_url":"https://api.github.com/repos/systemd/systemd","labels_url":"https://api.github.com/repos/systemd/systemd/issues/3775/labels{/name}","comments_url":"https://api.github.com/repos/systemd/systemd/issues/3775/comments","events_url":"https://api.github.com/repos/systemd/systemd/issues/3775/events","html_url":"https://github.com/systemd/systemd/pull/3775","id":166957272,"number":3775,"title":"libsystemd: Use getrlimit() to check for max LISTEN_FDS value","user":{"login":"lpereira","id":15001,"avatar_url":"https://avatars.githubusercontent.com/u/15001?v=3","gravatar_id":"","url":"https://api.github.com/users/lpereira","html_url":"https://github.com/lpereira","followers_url":"https://api.github.com/users/lpereira/followers","following_url":"https://api.github.com/users/lpereira/following{/other_user}","gists_url":"https://api.github.com/users/lpereira/gists{/gist_id}","starred_url":"https://api.github.com/users/lpereira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lpereira/subscriptions","organizations_url":"https://api.github.com/users/lpereira/orgs","repos_url":"https://api.github.com/users/lpereira/repos","events_url":"https://api.github.com/users/lpereira/events{/privacy}","received_events_url":"https://api.github.com/users/lpereira/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-22T02:21:13Z","updated_at":"2016-07-22T07:01:12Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/systemd/systemd/pulls/3775","html_url":"https://github.com/systemd/systemd/pull/3775","diff_url":"https://github.com/systemd/systemd/pull/3775.diff","patch_url":"https://github.com/systemd/systemd/pull/3775.patch"},"body":"If the call to getrlimit() fails for some reason, the previous value (INT_MAX) will be used instead."},"comment":{"url":"https://api.github.com/repos/systemd/systemd/issues/comments/234469545","html_url":"https://github.com/systemd/systemd/pull/3775#issuecomment-234469545","issue_url":"https://api.github.com/repos/systemd/systemd/issues/3775","id":234469545,"user":{"login":"evverx","id":10195800,"avatar_url":"https://avatars.githubusercontent.com/u/10195800?v=3","gravatar_id":"","url":"https://api.github.com/users/evverx","html_url":"https://github.com/evverx","followers_url":"https://api.github.com/users/evverx/followers","following_url":"https://api.github.com/users/evverx/following{/other_user}","gists_url":"https://api.github.com/users/evverx/gists{/gist_id}","starred_url":"https://api.github.com/users/evverx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evverx/subscriptions","organizations_url":"https://api.github.com/users/evverx/orgs","repos_url":"https://api.github.com/users/evverx/repos","events_url":"https://api.github.com/users/evverx/events{/privacy}","received_events_url":"https://api.github.com/users/evverx/received_events","type":"User","site_admin":false},"created_at":"2016-07-22T07:01:12Z","updated_at":"2016-07-22T07:01:12Z","body":"> isn't it possible for the rlimit to be lowered after fd values exceeding the current rlimit had been opened?\r\n\r\nYes, it's possible:\r\n```sh\r\ngetrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=4*1024}) = 0\r\nsetrlimit(RLIMIT_NOFILE, {rlim_cur=1, rlim_max=4*1024}) = 0\r\nfstat(2, {st_dev=makedev(0, 14), st_ino=3, st_mode=S_IFCHR|0620, st_nlink=1, st_uid=1001, st_gid=5, st_blksize=1024, st_blocks=0, st_rdev=makedev(136, 0), st_atime=2016/07/22-06:41:21.813000000, st_mtime=2016/07/22-06:41:21.813000000, st_ctime=2016/07/22-04:54:46.815000000}) = 0\r\nwrite(2, \"hm\\n\", 3hm\r\n)                     = 3\r\nopen(\"/etc/passwd\", O_RDONLY)           = -1 EMFILE (Too many open files)\r\n```\r\n\r\n> the rlimit is not a suitable substitute.\r\n\r\nAgreed\r\n\r\n@lpereira , which problem are you trying to fix?"}}
{"actor":{"display_login":"evverx"}}