git://git.openafs.org
/
openafs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
linux-lock-tracking-20070208
[openafs.git]
/
src
/
afs
/
afs_osi.h
diff --git
a/src/afs/afs_osi.h
b/src/afs/afs_osi.h
index
9eb0a27
..
c66ece8
100644
(file)
--- a/
src/afs/afs_osi.h
+++ b/
src/afs/afs_osi.h
@@
-212,8
+212,12
@@
typedef struct timeval osi_timeval_t;
/* should use curthread, but 'ps' can't display it */
#define osi_ThreadUnique() curproc
#else
+#ifdef AFS_LINUX_ENV
+#define osi_ThreadUnique() (current->pid)
+#else
#define osi_ThreadUnique() getpid()
#endif
+#endif