startxwin.exe no longer exists?
Wed Dec 17 17:52:00 GMT 2014
On 17-Dec-2014 09:40, Erik Soderquist wrote:
>> There is no reason that should happen unless the startxwin script also
>> crashes - and that basically should never happen. The script should
>> up any mess that the binary might leave, and it should handle all
>> that might result from some process it has started crashing. That is,
>> the script (pseudocode):
>> # If there is an existing lock file:
>> # Test is there also an existing X11 binary process?
>> # yes - abort with message: X11 server already running
>> # no - remove lock file
>> # do whatever housekeeping is needed
>> # then start binary
>> /path/X11_server_binary $args
>> #no matter how binary exits...
>> rm /path/.X*lock
>> The only time a script might not have a chance to run the last command
>> is if
>> it starts the server via "nohup binary &", assuming such a thing is
>> possible in cygwin, and then exits without waiting around for the
>> binary to
>> exit. Or, of course, if the whole system crashes, but that isn't the
>> the end users are having.
> So you want your script to completely mask and/or destroy any evidence
> that something crashed??
No, that is the log file, this is the lock file. It should rotate the
log file from the previous run and delete the lock file.
> Also, as the X server is not bound to a tty, it forks to the
> background on its own anyway, so your pseudocode example would delete
> the lock file just after the X server started.
In that case the the script needs to retrieve the PID of the forked
process and wait for it to exit.
Manager, Sequence Analysis Facility, Biology Division, Caltech
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
More information about the Cygwin-xfree