* ps and linking to cygwin.dll
@ 2002-04-23 16:07 Ryan T. Sammartino
[not found] ` <4.3.1.2.20020423211751.016e3178@pop.ma.ultranet.com>
0 siblings, 1 reply; 9+ messages in thread
From: Ryan T. Sammartino @ 2002-04-23 16:07 UTC (permalink / raw)
To: Cygwin List
Am I correct in stating that the only processes that ps will list are
processes that are linked to cygwin.dll?
--
Ryan T. Sammartino
http://members.shaw.ca/ryants/
Hear about the young Chinese woman who just won the lottery?
One fortunate cookie...
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: ps and linking to cygwin.dll
[not found] ` <4.3.1.2.20020423211751.016e3178@pop.ma.ultranet.com>
@ 2002-04-24 10:06 ` Ryan T. Sammartino
2002-04-24 10:07 ` Larry Hall (RFK Partners, Inc)
0 siblings, 1 reply; 9+ messages in thread
From: Ryan T. Sammartino @ 2002-04-24 10:06 UTC (permalink / raw)
To: Larry Hall (RFK Partners, Inc); +Cc: Cygwin List
On Tue, Apr 23, 2002 at 09:19:06PM -0400, Larry Hall (RFK Partners, Inc) wrote:
> At 06:51 PM 4/23/2002, you wrote:
>
> >Am I correct in stating that the only processes that ps will list are
> >processes that are linked to cygwin.dll?
>
>
> No. See 'ps -h'.
$ ps -h
ps: unknown option -- h
Pretty sure I have the latest greatest "ps". "man ps" says:
The ps program gives the status of all the Cygwin pro-
cesses running on the system (ps = "process status").
but that doesn't mean *just* Cygwin processes, and it isn't 100% clear
what a "Cygwin process" is.
(Oh wait... now I see the slight ambiguity in my question... I should
have said "... that 'ps -a' will list..." explicitly excluding the -W
option.)
--
Ryan T. Sammartino
http://members.shaw.ca/ryants/
BOO! We changed Coke again! BLEAH! BLEAH!
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: ps and linking to cygwin.dll
2002-04-24 10:06 ` Ryan T. Sammartino
@ 2002-04-24 10:07 ` Larry Hall (RFK Partners, Inc)
2002-04-24 15:05 ` Ryan T. Sammartino
0 siblings, 1 reply; 9+ messages in thread
From: Larry Hall (RFK Partners, Inc) @ 2002-04-24 10:07 UTC (permalink / raw)
To: Ryan T. Sammartino; +Cc: Cygwin List
At 12:28 PM 4/24/2002, Ryan T. Sammartino wrote:
>On Tue, Apr 23, 2002 at 09:19:06PM -0400, Larry Hall (RFK Partners, Inc) wrote:
> > At 06:51 PM 4/23/2002, you wrote:
> >
> > >Am I correct in stating that the only processes that ps will list are
> > >processes that are linked to cygwin.dll?
> >
> >
> > No. See 'ps -h'.
>
>
>$ ps -h
>ps: unknown option -- h
>
>
>Pretty sure I have the latest greatest "ps". "man ps" says:
>
> The ps program gives the status of all the Cygwin pro-
> cesses running on the system (ps = "process status").
>
>but that doesn't mean *just* Cygwin processes, and it isn't 100% clear
>what a "Cygwin process" is.
>
>
>(Oh wait... now I see the slight ambiguity in my question... I should
>have said "... that 'ps -a' will list..." explicitly excluding the -W
>option.)
OK, I didn't notice that '-h' isn't a valid option either. The important
part is that it lists the options. Doesn't this answer your question?
Larry Hall lhall@rfk.com
RFK Partners, Inc. http://www.rfk.com
838 Washington Street (508) 893-9779 - RFK Office
Holliston, MA 01746 (508) 893-9889 - FAX
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: ps and linking to cygwin.dll
2002-04-24 10:07 ` Larry Hall (RFK Partners, Inc)
@ 2002-04-24 15:05 ` Ryan T. Sammartino
2002-04-24 15:37 ` Larry Hall (RFK Partners, Inc)
0 siblings, 1 reply; 9+ messages in thread
From: Ryan T. Sammartino @ 2002-04-24 15:05 UTC (permalink / raw)
To: Cygwin List
On Wed, Apr 24, 2002 at 12:39:25PM -0400, Larry Hall (RFK Partners, Inc) wrote:
> At 12:28 PM 4/24/2002, Ryan T. Sammartino wrote:
>
> OK, I didn't notice that '-h' isn't a valid option either. The important
> part is that it lists the options. Doesn't this answer your question?
>
Not really. The question is *not* "How do I get ps to display Windows
processes". The question is:
Does 'ps' (without -W) list only processes that have been linked to the
Cygwin dll?
Releated question:
The man page says ps will list "Cygwin processes". What is a "Cygwin
process", exactly? Is a Cygwin process an executable that's been linked
to the Cygwin dll? Does "will list" mean "will *only* list" (in the
absence of the -W option)?
Make sense?
--
Ryan T. Sammartino
http://members.shaw.ca/ryants/
Remember: use logout to logout.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: ps and linking to cygwin.dll
2002-04-24 15:05 ` Ryan T. Sammartino
@ 2002-04-24 15:37 ` Larry Hall (RFK Partners, Inc)
2002-04-24 18:36 ` Ryan T. Sammartino
0 siblings, 1 reply; 9+ messages in thread
From: Larry Hall (RFK Partners, Inc) @ 2002-04-24 15:37 UTC (permalink / raw)
To: Ryan T. Sammartino, Cygwin List
At 05:18 PM 4/24/2002, Ryan T. Sammartino wrote:
>On Wed, Apr 24, 2002 at 12:39:25PM -0400, Larry Hall (RFK Partners, Inc) wrote:
> > At 12:28 PM 4/24/2002, Ryan T. Sammartino wrote:
> >
> > OK, I didn't notice that '-h' isn't a valid option either. The important
> > part is that it lists the options. Doesn't this answer your question?
> >
>
>Not really. The question is *not* "How do I get ps to display Windows
>processes". The question is:
>
>Does 'ps' (without -W) list only processes that have been linked to the
>Cygwin dll?
>
>Releated question:
>
>The man page says ps will list "Cygwin processes". What is a "Cygwin
>process", exactly? Is a Cygwin process an executable that's been linked
>to the Cygwin dll? Does "will list" mean "will *only* list" (in the
>absence of the -W option)?
>
>
>Make sense?
Not to me but... The answer is yes to all questions. I expect you would
be able to figure this out by playing with it briefly. If not, the answer
is also in the email archives (or source code). Sorry but I feel a little
like we're beating a dead horse here. Anyway, we're sure it's dead now,
right?
Larry Hall lhall@rfk.com
RFK Partners, Inc. http://www.rfk.com
838 Washington Street (508) 893-9779 - RFK Office
Holliston, MA 01746 (508) 893-9889 - FAX
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: ps and linking to cygwin.dll
2002-04-24 15:37 ` Larry Hall (RFK Partners, Inc)
@ 2002-04-24 18:36 ` Ryan T. Sammartino
2002-04-25 7:41 ` Larry Hall (RFK Partners, Inc)
2002-04-25 15:55 ` Stephen Powell
0 siblings, 2 replies; 9+ messages in thread
From: Ryan T. Sammartino @ 2002-04-24 18:36 UTC (permalink / raw)
To: Cygwin List
On Wed, Apr 24, 2002 at 06:09:44PM -0400, Larry Hall (RFK Partners, Inc) wrote:
> At 05:18 PM 4/24/2002, Ryan T. Sammartino wrote:
> >
> >Not really. The question is *not* "How do I get ps to display Windows
> >processes". The question is:
> >
> >Does 'ps' (without -W) list only processes that have been linked to the
> >Cygwin dll?
> >
> >Releated question:
> >
> >The man page says ps will list "Cygwin processes". What is a "Cygwin
> >process", exactly? Is a Cygwin process an executable that's been linked
> >to the Cygwin dll? Does "will list" mean "will *only* list" (in the
> >absence of the -W option)?
> >
> >
> >Make sense?
>
>
> Not to me but... The answer is yes to all questions. I expect you would
> be able to figure this out by playing with it briefly. If not, the answer
> is also in the email archives (or source code). Sorry but I feel a little
> like we're beating a dead horse here. Anyway, we're sure it's dead now,
> right?
>
Not quite yet :)
So, if I see a process in 'ps -a' output that is *not* linked to Cygwin
dll, that's a bug?
Or, does it mean that it is linked to the Cygwin dll, and that "depend"
tool that comes with Visual Studio is lying to me?
--
Ryan T. Sammartino
http://members.shaw.ca/ryants/
Backed up the system lately?
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: ps and linking to cygwin.dll
2002-04-24 18:36 ` Ryan T. Sammartino
@ 2002-04-25 7:41 ` Larry Hall (RFK Partners, Inc)
2002-04-25 15:55 ` Stephen Powell
1 sibling, 0 replies; 9+ messages in thread
From: Larry Hall (RFK Partners, Inc) @ 2002-04-25 7:41 UTC (permalink / raw)
To: Ryan T. Sammartino, Cygwin List
At 07:34 PM 4/24/2002, Ryan T. Sammartino wrote:
>On Wed, Apr 24, 2002 at 06:09:44PM -0400, Larry Hall (RFK Partners, Inc) wrote:
> > At 05:18 PM 4/24/2002, Ryan T. Sammartino wrote:
> > >
> > >Not really. The question is *not* "How do I get ps to display Windows
> > >processes". The question is:
> > >
> > >Does 'ps' (without -W) list only processes that have been linked to the
> > >Cygwin dll?
> > >
> > >Releated question:
> > >
> > >The man page says ps will list "Cygwin processes". What is a "Cygwin
> > >process", exactly? Is a Cygwin process an executable that's been linked
> > >to the Cygwin dll? Does "will list" mean "will *only* list" (in the
> > >absence of the -W option)?
> > >
> > >
> > >Make sense?
> >
> >
> > Not to me but... The answer is yes to all questions. I expect you would
> > be able to figure this out by playing with it briefly. If not, the answer
> > is also in the email archives (or source code). Sorry but I feel a little
> > like we're beating a dead horse here. Anyway, we're sure it's dead now,
> > right?
> >
>
>Not quite yet :)
>
>So, if I see a process in 'ps -a' output that is *not* linked to Cygwin
>dll, that's a bug?
Yes.
>Or, does it mean that it is linked to the Cygwin dll, and that "depend"
>tool that comes with Visual Studio is lying to me?
No. The process may load Cygwin DLL at runtime. "depends" won't detect
this. Of course, if I knew the specifics of the case you're concerned
about, I or someone else might be able to better advise you. Is there
any reason that you want to hide the details of the specific problem you're
seeing?
Larry Hall lhall@rfk.com
RFK Partners, Inc. http://www.rfk.com
838 Washington Street (508) 893-9779 - RFK Office
Holliston, MA 01746 (508) 893-9889 - FAX
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: ps and linking to cygwin.dll
2002-04-24 18:36 ` Ryan T. Sammartino
2002-04-25 7:41 ` Larry Hall (RFK Partners, Inc)
@ 2002-04-25 15:55 ` Stephen Powell
1 sibling, 0 replies; 9+ messages in thread
From: Stephen Powell @ 2002-04-25 15:55 UTC (permalink / raw)
To: cygwin
>>>>> "Ryan" == Ryan T Sammartino <ryants@shaw.ca> writes:
> So, if I see a process in 'ps -a' output that is *not* linked to
> Cygwin dll, that's a bug?
A process spawned by a Cygwin process will be displayed e.g. (the $ is
the bash prompt)
$ which regedit
/c/winnt/regedit
$ regedit &
[1] 1880
$ ps -a
PID PPID PGID WINPID TTY UID STIME COMMAND
1508 1 1508 1508 ? 18 Apr 24 /usr/bin/cygrunsrv
1664 1508 1508 1772 ? 18 Apr 24 /usr/sbin/cron
864 1 864 864 0 1000 04:58:43 /gnu/local/bin/ispell
1592 1 1592 1592 1 1000 06:05:55 /usr/bin/bash
1880 1592 1880 1880 1 1000 06:41:16 /c/winnt/regedit
1760 1592 1760 1524 1 1000 06:41:23 /usr/bin/ps
In this example the parent process (PPID) of the Windows registry
editor (regedit) is the bash shell.
--
Stephen Powell
stephen_powell@optusnet.com.au
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 9+ messages in thread
* RE: ps and linking to cygwin.dll
@ 2002-04-25 14:00 Heribert Dahms
0 siblings, 0 replies; 9+ messages in thread
From: Heribert Dahms @ 2002-04-25 14:00 UTC (permalink / raw)
To: Ryan T. Sammartino, Cygwin List
Runtime loaded cygwin may be checked for example with
the process viewer from NTRESKIT: select process, click
memory details, open drop-down to see dlls instead of total commit.
Bye, Heribert (heribert_dahms@icon-scm.com)
> -----Original Message-----
> From: Larry Hall (RFK Partners, Inc) [SMTP:lhall@rfk.com]
> Sent: Thursday, April 25, 2002 16:12
> To: Ryan T. Sammartino; Cygwin List
> Subject: Re: ps and linking to cygwin.dll
>
> At 07:34 PM 4/24/2002, Ryan T. Sammartino wrote:
>
[Heribert] [snip]
> >Or, does it mean that it is linked to the Cygwin dll, and that "depend"
> >tool that comes with Visual Studio is lying to me?
>
>
> No. The process may load Cygwin DLL at runtime. "depends" won't detect
> this. Of course, if I knew the specifics of the case you're concerned
> about, I or someone else might be able to better advise you. Is there
> any reason that you want to hide the details of the specific problem
> you're
> seeing?
>
>
>
>
>
> Larry Hall lhall@rfk.com
> RFK Partners, Inc. http://www.rfk.com
> 838 Washington Street (508) 893-9779 - RFK Office
> Holliston, MA 01746 (508) 893-9889 - FAX
>
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2002-04-25 21:00 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-23 16:07 ps and linking to cygwin.dll Ryan T. Sammartino
[not found] ` <4.3.1.2.20020423211751.016e3178@pop.ma.ultranet.com>
2002-04-24 10:06 ` Ryan T. Sammartino
2002-04-24 10:07 ` Larry Hall (RFK Partners, Inc)
2002-04-24 15:05 ` Ryan T. Sammartino
2002-04-24 15:37 ` Larry Hall (RFK Partners, Inc)
2002-04-24 18:36 ` Ryan T. Sammartino
2002-04-25 7:41 ` Larry Hall (RFK Partners, Inc)
2002-04-25 15:55 ` Stephen Powell
2002-04-25 14:00 Heribert Dahms
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).