GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
LOCKSPOOL(1) FreeBSD General Commands Manual LOCKSPOOL(1)

lockspoollock user's system mailbox

lockspool [username]

lockspool is useful for a client mail program to attain proper locking. lockspool obtains a username.lock for the calling user and retains it until stdin is closed or a signal like SIGINT, SIGTERM, or SIGHUP is received. Additionally, the superuser may specify the name of a user in order to lock a different mailbox.

If lockspool is able to create the lock file, “1” is written to stdout, otherwise “0” is written and an error message is written to stderr. lockspool will try up to 10 times to get the lock (sleeping for a short period in between tries).

Typical usage is for a user mail agent (such as mail(1)) to open a pipe to lockspool when it needs to lock the user's mail spool. Closing the pipe will cause lockspool to release the lock.

/var/mail/username.lock
user's mail lock file

The lockspool utility exits 0 on success, and 1 if an error occurs.

mail(1), mail.local(8), smtpd(8)

The lockspool program appeared in OpenBSD 2.4.

January 25, 2019 FreeBSD 14.3-RELEASE

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.