Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
John P. Willis
freem
Commits
e76458c2
Commit
e76458c2
authored
May 21, 2022
by
John P. Willis
Browse files
Attempt to fix segfault on ARM CPUs
parent
1698ee43
Pipeline
#746
passed with stage
in 1 minute and 30 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
src/shmmgr.c
src/shmmgr.c
+5
-0
No files found.
src/shmmgr.c
View file @
e76458c2
...
...
@@ -88,7 +88,12 @@ short shm_init(const size_t seg_size)
shm_config
->
seg_id
=
shmget
(
shm_config
->
key
,
shm_config
->
segsiz
,
0644
|
IPC_CREAT
);
if
(
shm_config
->
seg_id
==
-
1
)
return
SHMS_GET_ERR
;
#if !defined(__arm__)
shm_config
->
dta
=
shmat
(
shm_config
->
seg_id
,
NULL
,
0
);
#else
shm_config
->
dta
=
shmat
(
shm_config
->
seg_id
,
(
void
*
)
0x1000000
,
0
);
#endif
if
(
shm_config
->
dta
==
(
void
*
)
-
1
)
return
SHMS_ATTACH_ERR
;
/* view the first sizeof (shm_hdr_t) bytes of the data area as an shm_hdr_t */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment