summaryrefslogtreecommitdiff
path: root/lock.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2013-01-04 17:38:53 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2013-01-04 17:38:53 -0800
commit29818ff0b7af752639c203237de6c3a4d84da2c2 (patch)
treebff380679f30243e3e795b7f1396d570420a886f /lock.c
parentc358556c1badee4d8b75e23f1cd84abff393b6ac (diff)
unifdef -U__UNIXOS2__
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'lock.c')
-rw-r--r--lock.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/lock.c b/lock.c
index d51d09e..84c0ee3 100644
--- a/lock.c
+++ b/lock.c
@@ -58,15 +58,10 @@ LockSession(const char *session_name, Bool write_id)
path = GetPath ();
-#ifndef __UNIXOS2__
snprintf (lock_file, sizeof(lock_file), "%s/.XSMlock-%s",
path, session_name);
snprintf (temp_lock_file, sizeof(temp_lock_file), "%s/.XSMtlock-%s",
path, session_name);
-#else
- snprintf (temp_lock_file, sizeof(temp_lock_file), "%s/%s.slk",
- path, session_name);
-#endif
if ((fd = creat (temp_lock_file, 0444)) < 0)
return (0);
@@ -81,7 +76,6 @@ LockSession(const char *session_name, Bool write_id)
close (fd);
-#ifndef __UNIXOS2__
status = 1;
if (link (temp_lock_file, lock_file) < 0)
@@ -89,9 +83,6 @@ LockSession(const char *session_name, Bool write_id)
if (remove (temp_lock_file) < 0)
status = 0;
-#else
- status = 0;
-#endif
return (status);
}