Gnome: real extended command menu so all extended commands can be entered
Gnome: ignore interrupts to avoid infinite loop in gnome library
tty: avoid crash displaying quit inventory if inventory was already displayed
+winCE: ensure orphaned lockfile is always deleted on single-user handhelds
General New Features
#define OPENFAILURE(fd) (fd < 0)
lockptr = -1;
# endif
- while (retryct-- && OPENFAILURE(lockptr)) {
-# ifdef AMIGA
+ while (--retryct && OPENFAILURE(lockptr)) {
+# if defined(WIN32) && !defined(WIN_CE)
+ lockptr = sopen(lockname, O_RDWR|O_CREAT, SH_DENYRW, S_IWRITE);
+# else
(void)DeleteFile(lockname); /* in case dead process was here first */
+# ifdef AMIGA
lockptr = Open(lockname,MODE_NEWFILE);
-# else
+# else
lockptr = open(lockname, O_RDWR|O_CREAT|O_EXCL, S_IWRITE);
+# endif
# endif
if (OPENFAILURE(lockptr)) {
raw_printf("Waiting for access to %s. (%d retries left).",