From owner-freebsd-current Tue Jan 6 22:09:39 1998 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id WAA14918 for current-outgoing; Tue, 6 Jan 1998 22:09:39 -0800 (PST) (envelope-from owner-freebsd-current) Received: from word.smith.net.au (vh1.gsoft.com.au [203.38.152.122]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id WAA14871 for ; Tue, 6 Jan 1998 22:09:16 -0800 (PST) (envelope-from mike@word.smith.net.au) Received: from word (localhost [127.0.0.1]) by word.smith.net.au (8.8.8/8.8.5) with ESMTP id QAA00482; Wed, 7 Jan 1998 16:31:38 +1030 (CST) Message-Id: <199801070601.QAA00482@word.smith.net.au> X-Mailer: exmh version 2.0zeta 7/24/97 To: pb@fasterix.freenix.org (Pierre Beyssac) cc: freebsd-current@FreeBSD.ORG Subject: Re: funny ETXTBSY problem In-reply-to: Your message of "Tue, 06 Jan 1998 21:27:39 BST." <19980106212739.HR12419@@> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 07 Jan 1998 16:31:37 +1030 From: Mike Smith Sender: owner-freebsd-current@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > I just noticed the following problem: you can't copy over an > executable after it has been run once since boot time. > > This is fairly easy to reproduce: > > $ cp /bin/sh /tmp > $ echo echo hello there | /tmp/sh > hello there > $ cp /bin/sh /tmp > cp: /tmp/sh: Text file busy > > I noticed this after applying the patches John Dyson committed > today but that's apparently not where the problem comes from, as > this works with yesterday's kernel too... I can't say if it > works with a kernel older than last 20 December. You have a mutant problem: word:/tmp>uname -a FreeBSD word.smith.net.au 3.0-CURRENT FreeBSD 3.0-CURRENT #0: Wed Jan 7 07:57:45 CST 1998 root@word.smith.net.au:/local0/build/src/sys/compile/WORD i386 word:/tmp>cp /bin/sh . word:/tmp>echo echo hello world | ./sh hello world word:/tmp>rm ./sh override r-xr-xr-x mike/bin for ./sh? y word:/tmp>ls -l ./sh ls: ./sh: No such file or directory -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\