Index: ossp-pkg/as/as-cui/as-cui.pod RCS File: /v/ossp/cvs/ossp-pkg/as/as-cui/as-cui.pod,v rcsdiff -q -kk '-r1.17' '-r1.18' -u '/v/ossp/cvs/ossp-pkg/as/as-cui/as-cui.pod,v' 2>/dev/null --- as-cui.pod 2003/02/25 15:26:49 1.17 +++ as-cui.pod 2003/02/27 11:37:16 1.18 @@ -382,14 +382,51 @@ =head2 ${HOME}/.as/lock -The lock file contains the dezimal number listing the PID of the process -that created the lock. +The existence of the lock file alone identifies a mutual exclusive lock. +The application will not start if a lock file from any previous run is +dangling around. To identify who created the lock, where the lock was +created and to allow verification of obsolete locks, additional +information is stored in the file. It is assumed that upon detection of +a foreign lock the application at least prints the human readable "text" +field to give some hint about what's going on before it terminates. -B ::= B B +B ::= B B* B ::= /^%!AS-LOCK-[0-9]\.[0-9]$/ -B ::= [0-9]+ +B ::= B " " B "\n" + +B ::= "nodename" | "user" | "pid" | + "pwname" | "uid" | "text" + +B ::= /'[^']*'/ # single-quoted string + | /"[^"]*"/ # double-quoted string + | /[^\n]+/ + +B the lock files was created (format see B in ${HOME}/.as/events) +Example: 2002-02-28 + +B