Changeset 11617


Ignore:
Timestamp:
Jan 15, 2009, 11:29:12 AM (11 years ago)
Author:
gb
Message:

On entry to the kernel debugger on Unix, check to see if fileno(stdin)
is the same file /dev/null, don't (necessarily) check fd 0. (Rename
the function used to do this check.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/lisp-kernel/lisp-debug.c

    r11604 r11617  
    7171#ifndef WINDOWS
    7272Boolean
    73 fd0_is_dev_null()
     73stdin_is_dev_null()
    7474{
    7575  struct stat fd0stat, devnullstat;
    7676
    77   if (fstat(0,&fd0stat)) {
     77  if (fstat(fileno(stdin),&fd0stat)) {
    7878    return true;
    7979  }
     
    11111111
    11121112#ifndef WINDOWS
    1113   if (fd0_is_dev_null()) {
     1113  if (stdin_is_dev_null()) {
    11141114    return -1;
    11151115  }
Note: See TracChangeset for help on using the changeset viewer.