Re: broken flock emulation - DONT PANIC

Brian A. Lantz (brian@lantz.com)
Thu, 25 Apr 1996 17:20:35 -0400 (EDT)


For those others (like me) who do not have the time to recompile ALL of
their a.out and older ELF executables, and that would like to try 1.3.95
without being flooded with an ocean of 'broken flock()' warnings, the
following will silence them..........

*** locks.c.orig Thu Apr 25 17:17:51 1996
--- locks.c Thu Apr 25 17:17:53 1996
***************
*** 274,280 ****
--- 274,282 ----
case F_SHLCK :
case F_EXLCK :
+ #if 0
printk(KERN_WARNING
"fcntl_setlk() called by process %d with broken flock() emulation\n",
current->pid);
+ #endif
if (!(filp->f_mode & 3))
return (-EBADF);

-----------------------------------------------------------
Brian A. Lantz http://www.lantz.com brian@lantz.com

REAL PORTION of Microsoft Windows code:
while (memory_available) {
eat_major_portion_of_memory (no_real_reason);
if (feel_like_it)
make_user_THINK (this_is_an_OS);
gates_bank_balance++;
}