Sponsored Content
Full Discussion: locking problem
Top Forums UNIX for Dummies Questions & Answers locking problem Post 302153396 by venkatramana on Monday 24th of December 2007 11:34:55 AM
Old 12-24-2007
locking problem

Hi...
after unlock my computer from lock,

all telnet windows which i opened previously are closing automaticaly...

i hope u understand....plz give solution...
 

10 More Discussions You Might Find Interesting

1. SCO

System Locking Up

I have a server that is locking up pretty frequently for serveral months. I have about 4 dumb terminals running off this server and it appears that when the system is about to lock up it starts to run really slow on one of the terminals and then the rest follow suit until it just craps out. We... (1 Reply)
Discussion started by: mcrawfo4
1 Replies

2. UNIX for Advanced & Expert Users

File Locking

Hi, Does anyone know what happens when two processes are simultaneously trying to write to a single file in UNIX (AIX)? Cheers (1 Reply)
Discussion started by: penfold
1 Replies

3. Linux

Locking around kmem_cache_destroy

Hi There, I want to make sure that kmem_cache_alloc is not called concurrently with kmem_cache_destroy on module exit and I want be able to use GFP_KERNEL for the kmem_cache_alloc calls. Would a read/write lock be good fro this purpose or is there another method I should be using? Regards,... (0 Replies)
Discussion started by: Brendan Kennedy
0 Replies

4. UNIX for Dummies Questions & Answers

Keyboard keeps locking up

First off, let me start by saying that I am a total rookie when it comes to Unix so I will do my best to explain the situation. BACKGROUND:We are running AIX and using a third party Inventory Management software called Acclaim. My main interface terminal is just a "dummy" terminal hooked up to... (1 Reply)
Discussion started by: sstaszak11
1 Replies

5. UNIX for Dummies Questions & Answers

file locking

how do i implement file locking in unix? example if i want to update a file, i would like to use file locking. how do i implement it? i am using shell script thanks (3 Replies)
Discussion started by: yang
3 Replies

6. UNIX for Dummies Questions & Answers

how to do file locking?

how to ensure all files are being locked while updateing some files? example when i want to update the password and shadow file in unix. how do i implement file locking?? please advice thanks (2 Replies)
Discussion started by: yang
2 Replies

7. Shell Programming and Scripting

locking mechanism

I have a shell script. How can use some kind of locking mechanism to ensure that the script is not being executed by two people at the same time? (3 Replies)
Discussion started by: tjay83
3 Replies

8. UNIX for Advanced & Expert Users

File locking

i am working on a device runnin on linux....i have configured the samba server in the device such that my windows PC can access a shared folder in the device. Also in the device i am runnin some programs which access the files in this shared folder. What i want to know is whether there is any way i... (1 Reply)
Discussion started by: abhinx
1 Replies

9. Red Hat

Locking Down SFTP

Hi List, I'm sure this has been done before and there must be several ways to skin the cat on this topic. What I am trying to achieve is set up user accounts for use with SFTP based on the standard OpenSSH protocol. And I want to be able to lock them down so that they cannot browse outside of... (2 Replies)
Discussion started by: landossa
2 Replies

10. UNIX for Advanced & Expert Users

Insert Command Creating Table Locking Problem

Hi, i have a java based tool which does insert operation in a TABLE, and in parallel the same table is used by my C++ code which does select Query. the Table will be always busy, but sometimes the table is getting locked when i try to make an insert, am bit confused whether the lock is... (9 Replies)
Discussion started by: senkerth
9 Replies
DLM_UNLOCK(3)						     Library Functions Manual						     DLM_UNLOCK(3)

NAME
dlm_unlock - unlock a DLM lock SYNOPSIS
#include <libdlm.h> int dlm_unlock(uint32_t lkid, uint32_t flags, struct dlm_lksb *lksb, void *astarg); int dlm_unlock_wait(uint32_t lkid, uint32_t flags, struct dlm_lksb *lksb); DESCRIPTION
dlm_unlock() unlocks a lock previously acquired by dlm_lock and its variants. Unless dlm_unlock_wait() is used unlocks are also asynchronous. The AST routine is called when the resource is successfully unlocked (see below). lkid Lock ID as returned in the lksb flags flags affecting the unlock operation: LKF_CANCEL Cancel a pending lock or conversion. This returns the lock to it's previously granted mode (in case of a conversion) or unlocks it (in case of a waiting lock). LKF_IVVALBLK Invalidate value block LKF_FORCEUNLOCK Unlock the lock even if it's waiting. lksb LKSB to return status and value block information. astarg New parameter to be passed to the completion AST. The completion AST routine is the last completion AST routine specified in a dlm_lock call. If dlm_lock_wait() was the last routine to issue a lock, dlm_unlock_wait() must be used to release the lock. If dlm_lock() was the last routine to issue a lock then either dlm_unlock() or dlm_unlock_wait() may be called. Return values 0 is returned if the call completed successfully. If not, -1 is returned and errno is set to one of the following: EINVAL An invalid parameter was passed to the call (eg bad lock mode or flag) EINPROGRESS The lock is already being unlocked EBUSY The lock is currently being locked or converted ENOTEMPTY An attempt to made to unlock a parent lock that still has child locks. ECANCEL A lock conversion was successfully cancelled EUNLOCK An unlock operation completed successfully (sb_status only) EFAULT The userland buffer could not be read/written by the kernel If an error is returned in the AST, then lksb.sb_status is set to the one of the above numbers instead of zero. EXAMPLE
int status; struct dlm_lksb lksb; status = dlm_lock_wait(LKM_EXMODE, &lksb, LKF_NOQUEUE, "MyLock", strlen("MyLock"), 0, // Parent, NULL, // bast arg NULL, // bast routine, NULL); // Range if (status == 0) dlm_unlock_wait(lksb.sb_lkid, 0, &lksb); SEE ALSO
libdlm(3), dlm_lock(3), dlm_open_lockspace(3), dlm_create_lockspace(3), dlm_close_lockspace(3), dlm_release_lockspace(3) libdlm functions July 5, 2007 DLM_UNLOCK(3)
All times are GMT -4. The time now is 03:31 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy