Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
8d75ff64
Commit
8d75ff64
authored
Jun 17, 2002
by
monty@mashka.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Portability fix for HPUX
parent
a1e50625
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
BitKeeper/etc/logging_ok
BitKeeper/etc/logging_ok
+1
-0
mysys/my_pthread.c
mysys/my_pthread.c
+9
-2
No files found.
BitKeeper/etc/logging_ok
View file @
8d75ff64
...
...
@@ -23,3 +23,4 @@ serg@sergbook.mysql.com
sinisa@rhols221.adsl.netsonic.fi
zak@balfor.local
monty@narttu.
monty@mashka.mysql.fi
mysys/my_pthread.c
View file @
8d75ff64
...
...
@@ -416,8 +416,15 @@ int my_pthread_cond_timedwait(pthread_cond_t *cond,
pthread_mutex_t
*
mutex
,
struct
timespec
*
abstime
)
{
int
error
=
pthread_cond_timedwait
(
cond
,
mutex
,
abstime
);
return
(
error
==
EAGAIN
||
error
==
-
1
)
?
ETIMEDOUT
:
error
;
int
error
=
pthread_cond_timedwait
(
cond
,
mutex
,
abstime
);
if
(
error
==
-
1
)
/* Safety if the lib is fixed */
{
if
(
!
(
error
=
errno
))
error
=
ETIMEDOUT
;
/* Can happen on HPUX */
}
if
(
error
==
EAGAIN
)
/* Correct errno to Posix */
error
=
ETIMEDOUT
;
return
error
;
}
#endif
/* HAVE_BROKEN_PTHREAD_COND_TIMEDWAIT */
...
...
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