How to find process name in c?
Conor P. Cahill
cpcahil at virtech.uucp
Wed Jul 18 20:13:21 AEST 1990
In article <23896 at adm.BRL.MIL> konczal at mail-gw.ncsl.nist.gov (Joseph C. Konczal) writes:
>
> From: "Conor P. Cahill" <cpcahil at virtech.uucp>
> Date: 15 Jul 90 01:59:57 GMT
>
> An easy way to see if a particular executable is running is to try
> to open the file with write permissions. If you get the errno ETXTBSY,
> the executable is being run.
>
>Where does this happen, what kind of Unix? I have overwritten
>executable files that are currently running under various revisions of
>BSD, SunOS, even VMS, without ever getting errno ETXTBSY. After the
As a minimum it happens on System V.*, HP-UX, and Ultrix (that is all that
I have access to at the momemt). Are you overwriting by unlinking the
original as opposed to opening & writing on top of what was there?
--
Conor P. Cahill (703)430-9247 Virtual Technologies, Inc.,
uunet!virtech!cpcahil 46030 Manekin Plaza, Suite 160
Sterling, VA 22170
More information about the Comp.unix.questions
mailing list