tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Steve Swinnea <swinnea () weiss ! che ! utexas ! edu>
To: tru64-unix-managers
Subject: named pipes
Date: Fri, 30 Jun 1995 13:31:22 +0000	[thread overview]
Message-ID: <96075320706672.tru64-unix-managers.marc@archive.invalid> (raw)


I asked recently about removing svr4 named pipes from the filesystem
once processes were through using them.  "rm PIPE" didn't work.

My original message:
    I've been working with a program suite that sets up a named pipe
    (/var/spool/ppr/PIPE).  I abandoned the pipe mechanism in libc.a in
    favor on the one in libsrv4.a.  The program works now except when I
    kill it the pipe remains.  If I try rm, I get the message "Device
    busy".  The problem is that I can't restart the program at this point
    because the program can no longer open a pipe with the old one there.
    Rebooting clears the p flag on the file and then the program can be
    restarted.

Jim Wright <jwright@phy.ucsf.edu> wrote:
    this is an ugly answer, but in case you don't get any 
    prettier ones...

    % program
    % kill <program>
    % mv PIPE PIPE.1
    % mknod p PIPE
    % program
    % kill <program>
    % mv PIPE PIPE.2
    etc...

    then on reboot, have it "rm /var/spool/ppr/PIPE.*" to clean up.


ron menner <rtm@zk3.dec.com> wrote: 
    i'm sorry to say that you have to do an umount on the named
    pipe before rm will work.  Again my sincere apolgies for
    this behaviour.


This occurred to me shortly after I posted the message.  I did a
df and it complained about the filesystem /var/spool/ppr/PIPE.  I
suppose having to use the FFS option in the kernel should have
given me a clue. Oh, well it works.  :(

Steve Swinnea
swinnea@che.utexas.edu
Department of Chemical Engineering
The University of Texas at Austin

             reply	other threads:[~1995-06-30 13:31 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-06-30 13:31 Steve Swinnea [this message]
  -- strict thread matches above, loose matches on Subject: below --
1998-08-24 14:36 named pipes Ed Lewis
1998-08-24 14:33 Ed Lewis
1995-06-26 18:22 Steve Swinnea
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox