diff options
author | Jeremy Allison <jra@samba.org> | 2002-03-26 22:36:27 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2002-03-26 22:36:27 +0000 |
commit | 64d20453d97f08e412a2dc51d8d131d630f63999 (patch) | |
tree | 3298780ef5589839657dead5b5ba32ec636f187c /source3/lib/util_file.c | |
parent | 42cfc17700744bda2288d7067fea34d690852bb3 (diff) | |
download | samba-64d20453d97f08e412a2dc51d8d131d630f63999.tar.gz samba-64d20453d97f08e412a2dc51d8d131d630f63999.tar.bz2 samba-64d20453d97f08e412a2dc51d8d131d630f63999.zip |
Don't hold the mutex for more than 20 seconds.
Jeremy.
(This used to be commit 1b9f1a368f2f37700cef357ab4bbc0389ec06378)
Diffstat (limited to 'source3/lib/util_file.c')
-rw-r--r-- | source3/lib/util_file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/util_file.c b/source3/lib/util_file.c index 88d03e7472..e80267f84b 100644 --- a/source3/lib/util_file.c +++ b/source3/lib/util_file.c @@ -53,7 +53,7 @@ BOOL do_file_lock(int fd, int waitsecs, int type) alarm(waitsecs); ret = fcntl(fd, SMB_F_SETLKW, &lock); alarm(0); - CatchSignal(SIGALRM, SIGNAL_CAST SIG_DFL); + CatchSignal(SIGALRM, SIGNAL_CAST SIG_IGN); if (gotalarm) { DEBUG(0, ("do_file_lock: failed to %s file.\n", |