Ignore:
Timestamp:
Jun 9, 2008 3:53:03 PM (5 years ago)
Author:
jrollins
Message:

cereal: device locking seems to be working now (lets hope everything
else respects the lock!). added lock checking before starting
sessions. also removed run check when stopping a session so that any
session can be stopped no matter it's state (allows for stopping
session that are stuck because of lockfiles, for instance).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cereal/fs/usr/share/cereal/mainrun

    r1038 r1100  
    99# or later. 
    1010 
    11 exec 2>&1 
     11exec 2>./socket 1>&2 
    1212 
    1313SHAREDIR="/usr/share/cereal" 
     
    1616 
    1717# ensure that the socket is available 
    18 ( [ -p ./socket ] || (rm -f ./socket; mkfifo ./socket) ) || failure "Can not create socket." 
     18( [ -p ./socket ] || (rm -f ./socket; mkfifo ./socket) ) || failure "can not create socket." 
    1919 
    2020# find screenrc:     
     
    2424    SCREENRC="$ETC/screenrc" 
    2525else 
    26     failure "Cereal screenrc file not found." 
     26    failure "cereal screenrc file not found." 
    2727fi 
    2828export SCREENRC 
     
    3030# call the mainrun function (defined in $SHAREDIR/common) 
    3131# that actually runs screen 
    32 exec chpst -e ./env sh -c ". $SHAREDIR/common && mainrun" 2>./socket 1>&2 
     32exec chpst -e ./env sh -c ". $SHAREDIR/common && mainrun" 
Note: See TracChangeset for help on using the changeset viewer.