| Jim,
This piece of code and other code like this
                        /* Ok - maybe we're not creating it.  87( */
                        openlog("lockserver", LOG_PID, LOG_DAEMON);
                        syslog(LOG_ERR, "Could not create HOME =
directory.");
                        syslog(LOG_ERR, strerror(errno));
                        closelog();
                        exit(EXIT_FAILURE);
Write to the Unix Syslog. It dos not create a logfile called logserver.
It has been a long time since I have made changes to the code but I =
think
That for Windows I send the Syslog entries to the screen. Have a look at =
the
last 50 lines
Or so of lockserver to see the code I have for MINGW.
Regards
Andrew Cameron
----------------------------------------------
Ordinary people are making EXTRAORDINARY
money WORKING FROM HOME on the Internet!
Get FREE info by email. =20
Send your request to :
mailto:myo...@ge...
Andrew Cameron
e-Mail: apc...@so...
URL: http://www.myownbusinessathome.com
URL: http://www.moreinfo247.com/8763637/FREE
URL: http://www.empowerism.com/e/96001
URL: http://signups-guaranteed.us/affiliates/2887072.php
----------------------------------------------
-----Original Message-----
From: tin...@li...
[mailto:tin...@li...] On Behalf Of Jim
Morcombe
Sent: Monday, May 16, 2005 4:33 AM
To: tiny-cobol-users
Subject: [Tiny-cobol-users] Lockserver
Lockserver is now running.
I deleted everything in the directory /usr/local/lockserver and=20
installed it again.
There had been a file called ".lf" previously.  Now it is gone and I=20
have a file called "lockdump".
As far as I can see from the code, after checking the HOME directory is=20
okay, it then tries to open a lockfile.  If it can't, it then tries to=20
open a log file and write an error message to it.  Is the log file meant =
to be called "lockserver"?  What directory should it be created in?
Any clues?
Jim
-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=3D7412&alloc_id=3D16344&op=3Dclick
_______________________________________________
Tin...@li...
https://lists.sourceforge.net/lists/listinfo/tiny-cobol-users
--=20
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.322 / Virus Database: 266.11.13 - Release Date: 5/19/2005
=20
 |