NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/56713 - I have a test program!



The following reply was made to PR kern/56713; it has been noted by GNATS.

From: Paul Goyette <paul%whooppee.com@localhost>
To: thorpej%netbsd.org@localhost
Cc: martin%netbsd.org@localhost, gnats-bugs%netbsd.org@localhost
Subject: Re: kern/56713 - I have a test program!
Date: Sun, 6 Mar 2022 10:49:20 -0800 (PST)

   This message is in MIME format.  The first part should be readable text,
   while the remaining parts are likely unreadable without MIME-aware tools.
 
 --0-1557645311-1646592560=:880
 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
 
 My previous program was all good, except for the comment about
 mounting the nulldir!  I had the mount command backwards!
 
 With the attached program, I get
 
 # pwd
 /home/paul/ZZZ
 # mkdir realdir
 # mkdir nulldir
 # mount -t null nulldir realdir
 mount_null: "realdir" is a relative path.
 mount_null: using "/home/paul/ZZZ/realdir" instead.
 # rm -f realdir/thefile
 # touch realdir/thefile
 # ./TAIL realdir/thefile nulldir/thefile
 TAIL: Retrieved 0 events, first 0x25
 #
 
 Sure enough, the test program receives no events, and exits when
 the kevent()'s timeout is reached!
 
 
 +--------------------+--------------------------+----------------------+
 | Paul Goyette       | PGP Key fingerprint:     | E-mail addresses:    |
 | (Retired)          | FA29 0E3B 35AF E8AE 6651 | paul%whooppee.com@localhost    |
 | Software Developer | 0786 F758 55DE 53BA 7731 | pgoyette%netbsd.org@localhost  |
 | & Network Engineer |                          | pgoyette99%gmail.com@localhost |
 +--------------------+--------------------------+----------------------+
 --0-1557645311-1646592560=:880
 Content-Type: TEXT/PLAIN; charset=US-ASCII; name=TAIL.c
 Content-Transfer-Encoding: BASE64
 Content-ID: <Pine.NEB.4.64.2203061049200.880%speedy.whooppee.com@localhost>
 Content-Description: 
 Content-Disposition: attachment; filename=TAIL.c
 
 I2luY2x1ZGUgPGVyci5oPg0KI2luY2x1ZGUgPGZjbnRsLmg+DQojaW5jbHVk
 ZSA8c3RkbGli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