From: Andrew Bray (andy@madhouse.demon.co.uk)
Date: 06/12/93


From: andy@madhouse.demon.co.uk (Andrew Bray)
Subject: Re: Thread Package for Linux
Date: Sat, 12 Jun 1993 10:06:41 +0000

In article <1993Jun11.024118.7455@kf8nh.wariat.org> bsa@kf8nh.wariat.org (Brandon S. Allbery) writes:
>I'm inclined to think that /proc could contain pointers to a process's
>attached IPC objects, but not necessarily the IPC hierarchy itself. Then
>again, we are talking about Unix and not Plan 9.

That is not unreasonable. Daemons of one form or another need a way of
advertising themselves to clients. This is easy if they connect via
sockets or named pipes, but if they use signals or SYS V IPC then they
have to use rather messy systems (eg: should pid files be binary or ASCII).

In the scheme you are mentioning, the daemon would create symlinks in a known
place to it's proc entry, and also to its IPC handles for other processes
to signal/attach to. All we need is a signal ioctl for the proc filing
system.

Regards,

Andy