cvs commit: src/sys/fs/procfs procfs_dbregs.c procfs_regs.c

Dag-Erling Smorgrav des at
Sun Apr 15 13:24:04 UTC 2007

des         2007-04-15 13:24:03 UTC

  FreeBSD src repository

  Modified files:
    sys/fs/procfs        procfs_dbregs.c procfs_regs.c 
  Don't reset uio_offset to 0 before returning.  Instead, refuse to service
  requests where uio_offset is not 0 to begin with.  This fixes a long-
  standing bug where e.g. 'cat /proc/$$/regs' would loop forever.
  MFC after:      3 weeks
  Revision  Changes    Path
  1.27      +3 -1      src/sys/fs/procfs/procfs_dbregs.c
  1.32      +4 -2      src/sys/fs/procfs/procfs_regs.c

More information about the cvs-src mailing list