Are lines
88 + rlimit.rlim_cur = 0; /* Safety if next call fails */ 89 + 90 + (void) getrlimit(RLIMIT_NOFILE, &rlimit); 91 + 92 + if (rlimit.rlim_cur) {
work different from
nn + if (!getrlimit(RLIMIT_NOFILE, &rlimit)) {
man page suggest to use return value for error handling and says nothing about using rlim_cur for this purpose.
« Back to merge proposal
Are lines
88 + rlimit.rlim_cur = 0; /* Safety if next call fails */ RLIMIT_ NOFILE, &rlimit);
89 +
90 + (void) getrlimit(
91 +
92 + if (rlimit.rlim_cur) {
work different from
nn + if (!getrlimit( RLIMIT_ NOFILE, &rlimit)) {
man page suggest to use return value for error handling and says nothing about using rlim_cur for this purpose.