diff options
Diffstat (limited to 'arch/sparc64/kernel/sys_sunos32.c')
-rw-r--r-- | arch/sparc64/kernel/sys_sunos32.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/sparc64/kernel/sys_sunos32.c b/arch/sparc64/kernel/sys_sunos32.c index 4cff95b7b3a4..8f7a06e2c7e7 100644 --- a/arch/sparc64/kernel/sys_sunos32.c +++ b/arch/sparc64/kernel/sys_sunos32.c | |||
@@ -871,7 +871,7 @@ asmlinkage s32 sunos_sysconf (int name) | |||
871 | ret = ARG_MAX; | 871 | ret = ARG_MAX; |
872 | break; | 872 | break; |
873 | case _SC_CHILD_MAX: | 873 | case _SC_CHILD_MAX: |
874 | ret = -1; /* no limit */ | 874 | ret = current->signal->rlim[RLIMIT_NPROC].rlim_cur; |
875 | break; | 875 | break; |
876 | case _SC_CLK_TCK: | 876 | case _SC_CLK_TCK: |
877 | ret = HZ; | 877 | ret = HZ; |
@@ -880,7 +880,7 @@ asmlinkage s32 sunos_sysconf (int name) | |||
880 | ret = NGROUPS_MAX; | 880 | ret = NGROUPS_MAX; |
881 | break; | 881 | break; |
882 | case _SC_OPEN_MAX: | 882 | case _SC_OPEN_MAX: |
883 | ret = OPEN_MAX; | 883 | ret = current->signal->rlim[RLIMIT_NOFILE].rlim_cur; |
884 | break; | 884 | break; |
885 | case _SC_JOB_CONTROL: | 885 | case _SC_JOB_CONTROL: |
886 | ret = 1; /* yes, we do support job control */ | 886 | ret = 1; /* yes, we do support job control */ |