Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
57b57efb
...
57b57efb812f06f83e1ff09e60b37e54b6012c21
authored
2002-03-02 02:09:26 +0000
by
Sam Roberts
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
locker_lock() api changed. pop3d uses MU_LOCKER_PID.
1 parent
b6076d05
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
pop3d/lock.c
pop3d/lock.c
View file @
57b57ef
...
...
@@ -23,14 +23,16 @@ pop3d_lock ()
url_t
url
=
NULL
;
locker_t
lock
=
NULL
;
const
char
*
name
;
int
status
;
mailbox_get_url
(
mbox
,
&
url
);
name
=
url_to_string
(
url
);
mailbox_get_locker
(
mbox
,
&
lock
);
if
(
locker_lock
(
lock
,
MU_LOCKER_WRLOCK
))
locker_set_flags
(
lock
,
MU_LOCKER_PID
);
if
((
status
=
locker_lock
(
lock
)))
{
syslog
(
LOG_NOTICE
,
"mailbox '%s' lock
ed by another session
"
,
(
name
)
?
name
:
"?"
);
syslog
(
LOG_NOTICE
,
"mailbox '%s' lock
failed: %s
"
,
(
name
)
?
name
:
"?"
,
mu_errstring
(
status
)
);
return
ERR_MBOX_LOCK
;
}
return
0
;
...
...
Please
register
or
sign in
to post a comment