Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf7d1da9

Browse files
committed
Use lockf on XLC.
1 parent25445d9 commitf7d1da9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎catalog.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,11 @@ catalog_lock(void)
4343
elog(errno==ENOENT ?ERROR :ERROR,
4444
"cannot open file \"%s\": %s",id_path,strerror(errno));
4545

46+
#ifdef__IBMC__
47+
ret=lockf(lock_fd,LOCK_EX |LOCK_NB,0);/* non-blocking */
48+
#else
4649
ret=flock(lock_fd,LOCK_EX |LOCK_NB);/* non-blocking */
50+
#endif
4751
if (ret==-1)
4852
{
4953
if (errno==EWOULDBLOCK)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp