Portewd to HP-UX.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@109 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -101,7 +101,7 @@ struct passwd * pwp;
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Lock the temporary maildrop */
|
/* Lock the temporary maildrop */
|
||||||
if ( flock (dfd, LOCK_EX|LOCK_NB) == -1 )
|
if ( k_flock (dfd, (K_LOCK_EX | K_LOCK_NB)) == -1 )
|
||||||
switch(errno) {
|
switch(errno) {
|
||||||
case EWOULDBLOCK:
|
case EWOULDBLOCK:
|
||||||
return pop_msg(p,POP_FAILURE,
|
return pop_msg(p,POP_FAILURE,
|
||||||
@@ -120,7 +120,7 @@ struct passwd * pwp;
|
|||||||
if ((mfd = open(p->drop_name,O_RDWR)) > 0) {
|
if ((mfd = open(p->drop_name,O_RDWR)) > 0) {
|
||||||
|
|
||||||
/* Lock the maildrop */
|
/* Lock the maildrop */
|
||||||
if (flock (mfd,LOCK_EX) == -1) {
|
if (k_flock (mfd, K_LOCK_EX) == -1) {
|
||||||
(void)close(mfd) ;
|
(void)close(mfd) ;
|
||||||
return pop_msg(p,POP_FAILURE, "flock: '%s': %s", p->temp_drop,
|
return pop_msg(p,POP_FAILURE, "flock: '%s': %s", p->temp_drop,
|
||||||
(errno < sys_nerr) ? sys_errlist[errno] : "");
|
(errno < sys_nerr) ? sys_errlist[errno] : "");
|
||||||
|
Reference in New Issue
Block a user