diff options
author | Stefan Metzmacher <metze@samba.org> | 2012-07-25 08:35:44 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2012-07-25 12:15:02 +0200 |
commit | 97b1776cb6f56a112fe16e747caaad7473c6bb73 (patch) | |
tree | 7afe016dac032d8198c8df2e7ad3483491968406 | |
parent | b0f1921bd733e9ad4f8fef720fab2fd0ed675f12 (diff) | |
download | samba-97b1776cb6f56a112fe16e747caaad7473c6bb73.tar.gz samba-97b1776cb6f56a112fe16e747caaad7473c6bb73.tar.bz2 samba-97b1776cb6f56a112fe16e747caaad7473c6bb73.zip |
s4:torture: replace shm_setup() with anonymous_shared_allocate()
metze
-rw-r--r-- | source4/torture/nbench/nbio.c | 2 | ||||
-rw-r--r-- | source4/torture/util_smb.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/source4/torture/nbench/nbio.c b/source4/torture/nbench/nbio.c index ca186d007b..c9b369e861 100644 --- a/source4/torture/nbench/nbio.c +++ b/source4/torture/nbench/nbio.c @@ -314,7 +314,7 @@ next: void nbio_shmem(int n, int t_timelimit, int t_warmup) { nprocs = n; - children = shm_setup(sizeof(*children) * nprocs); + children = anonymous_shared_allocate(sizeof(*children) * nprocs); if (!children) { printf("Failed to setup shared memory!\n"); nb_exit(1); diff --git a/source4/torture/util_smb.c b/source4/torture/util_smb.c index 93993fd80f..6975b10f41 100644 --- a/source4/torture/util_smb.c +++ b/source4/torture/util_smb.c @@ -657,13 +657,13 @@ double torture_create_procs(struct torture_context *tctx, signal(SIGCONT, sigcont); - child_status = (volatile pid_t *)shm_setup(sizeof(pid_t)*torture_nprocs); + child_status = (volatile pid_t *)anonymous_shared_allocate(sizeof(pid_t)*torture_nprocs); if (!child_status) { printf("Failed to setup shared memory\n"); return -1; } - child_status_out = (volatile bool *)shm_setup(sizeof(bool)*torture_nprocs); + child_status_out = (volatile bool *)anonymous_shared_allocate(sizeof(bool)*torture_nprocs); if (!child_status_out) { printf("Failed to setup result status shared memory\n"); return -1; |