|
From: Jiri J. <jja...@re...> - 2014-09-23 09:45:31
|
The output was conflicting with "testres exitval pid" fprintf
and doesn't seem to be used anywhere in the suite.
Furthermore, it doesn't alter the behavior of the fork syscall,
since it's getrlimit, not setrlimit.
Whitespace separation from the rest of the code suggests that this
was perhaps a debugging (temporary) code.
Signed-off-by: Jiri Jaburek <jja...@re...>
---
audit-test/utils/bin/do_fork.c | 7 -------
1 file changed, 7 deletions(-)
diff --git a/audit-test/utils/bin/do_fork.c b/audit-test/utils/bin/do_fork.c
index f77ceea..991fded 100644
--- a/audit-test/utils/bin/do_fork.c
+++ b/audit-test/utils/bin/do_fork.c
@@ -23,13 +23,6 @@ int main(int argc, char **argv)
int exitval, result;
pid_t pid;
-
- struct rlimit slimit;
-
- getrlimit(RLIMIT_NPROC, &slimit);
- fprintf(stderr, "rlim_cur = %d rlim_max = %d\n",
- (int)slimit.rlim_cur, (int)slimit.rlim_max);
-
/* use syscall() to force fork, as the fork() library routine
* doesn't call sys_fork on x86_64. */
errno = 0;
--
1.8.3.1
|