public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Paul Sokolovsky <paul-ml@is.lg.ua>
To: "Christopher Jones" <cbjones@nortelnetworks.com>
Cc: cygwin@sourceware.cygnus.com
Subject: Re[2]: Cygwin 1.1.0 gdb troubles
Date: Wed, 19 Apr 2000 07:15:00 -0000	[thread overview]
Message-ID: <7703.000419@is.lg.ua> (raw)
In-Reply-To: <C9A8E1D07093D111B76A0000F8C9918A03332F3D@zrtpd003.us.nortel.com>

Hello Christopher,

Christopher Jones <cbjones@nortelnetworks.com> wrote:

CJ> Seems like it would make more sense to at least hide these cygwin pids and
CJ> let users always use windows pids for ps, kill, $$ in a shell, etc.  So the
CJ> PID and PPID values would be the real windows values and cygwin pids would
CJ> disappear into the internals somewhere... probably a lookup table if you
CJ> really need to have them still.  Something like this would be more seemless,
CJ> wouldn't it?

    If no cygwin people will agree with you, then at least me will.
IMHO, win32 is undoubtfully POSIX by spirit, only having somewhat
twisted upbringing. Almost any POSIX feature maps one-to-one to win32
one and difference is only in some idiosyncratic details. As an
example, DeleteFile() does exactly what remove() does with one
difference: remove() explicitly states possibility of removing opened
file, while DeleteFile() explicitly prohibits it. I can't believe
there's some adequate reasoning behind DeleteFile()'s behaviour. I
just can imagine some win32 architect reading POSIX spec and time to
time exclaiming: 'And *here*, we'll do vice-versa!' ;-)

     Well, what idiosyncratic features of native pids would harden
their usage as POSIX pisd as-is?

1. While NT's pids are rather POSIX-correct as-is, 9x's ones are
negative values, large (up to 10 dec digits) by module.
2. There's no documented way to get ppid on NT.
3. It's impossible to overlay image of current process. This means,
when performing usual fork-exec chain, there will be three processes:
parent, exec() implementer stub and execed child. So, between child
and parent in POSIX terms there will be other process.

    While these problems may seem denying original idea, they hardly
do. The workarounds for them exist, working and confidently may be
called more robust than maintaining additional superstructures,
moreover shared between all processes.

    Well, *that*'s not most annoying feature of cygwin. Just net
version ago there might arise problems with just having cygwin work
properly after installation, mostly because ungrounded default mount
table setup. But look - this version now takes care to ask user where
he wants having root mount. So, all consistently improving and maybe
one day other areas also will be addressed.


CJ> Brian




--
Paul Sokolovsky, IT Specialist
http://www.brainbench.com/transcript.jsp?pid=11135



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

  reply	other threads:[~2000-04-19  7:15 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-04-19  6:02 Christopher Jones
2000-04-19  7:15 ` Paul Sokolovsky [this message]
2000-04-19  7:22   ` DJ Delorie
2000-04-19 12:19     ` Re[2]: " Paul Sokolovsky
2000-04-19 12:31       ` DJ Delorie
2000-04-19 16:27       ` Chris Faylor
2000-04-19 10:05   ` Chris Faylor
2000-04-20 23:37     ` Re[2]: " Paul Sokolovsky
2000-04-21  8:08       ` Chris Faylor
2000-04-19  9:47 ` Chris Faylor

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7703.000419@is.lg.ua \
    --to=paul-ml@is.lg.ua \
    --cc=cbjones@nortelnetworks.com \
    --cc=cygwin@sourceware.cygnus.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).