Eric at Lucii.org on 19 Dec 2010 17:55:10 -0800


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

[PLUG] Named pipes


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I'm working on a program running in Linux that is written in Mono.  The program
creates an IPC server channel (named pipe) and listens for incoming
communications.  I notice that if I create a named pipe using mkfifo it looks
like this in the /tmp file system:

prw-r--r--  1 root root    0 2010-12-19 11:50 mkfifo-named-pipe

but when the program runs it creates an entry in the file system that looks like
this:

srw-rw-rw-  1 root root    0 2010-12-19 11:32 program-named-pipe

Sometimes it appears in the ls output as program-named-pipe=
(with a trailing "=".)  What kind of pipe is identified by a leading "s" instead
of "p"?

In any case, I cannot write to that program-named-pipe.
If I try like this:

echo "test" > program-named-pipe

I end up with a regular file by the same name.

Any ideas what I'm seeing?  Is this a different kind of named pipe or some
entirely different type of beast?

Thanks,
Eric
- -- 
#  Eric Lucas
#
#                "Oh, I have slipped the surly bond of earth
#                 And danced the skies on laughter-silvered wings...
#                                        -- John Gillespie Magee Jr
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk0Ot28ACgkQ2sGpvXQrZ/7wzQCdGuxMGicX4UdYUYjB/49JDXzG
AOAAnjYOoBD5h0JXnB7aoKaovXGmf7Bm
=STIE
-----END PGP SIGNATURE-----
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug