[Top][All Lists]

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

Re: Help debugging Re: bug report

From: David Kaelbling
Subject: Re: Help debugging Re: bug report
Date: Wed, 27 Mar 2002 14:24:10 -0500

I looked through the source for man.  It closes fd's 0,1,2 before doing
an exec in the specific case where it is testing to see if a filter
exists.  (It's in "forkandexeclp", if you have some similar source to
browse.)  This invocation is expected to die.

Later on man will fork() again and use system() to actually run the
filter.  You can use "man -p" to see what commands it would run.


Mathew Yeates wrote:
> I'm tryin to debug groff running on SGI Irix 6.5.
> When I do a system trace on man I see that file descriptors 0,1,2 are
> closed by make immediately prior to gnroff being forked. Is this correct
> behavior? I tried adding the line "echo HELLO" near the beginning of
> gnroff and, as expected, this fails with a "bad file descriptor" message
> in my trace.
> Does that happen with other OS's?

David KAELBLING <address@hidden>            Silicon Graphics Computer Systems
1 Cabot Rd, suite 250; Hudson, MA 01749     781.839.2157, fax ...2357

reply via email to

[Prev in Thread] Current Thread [Next in Thread]