This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: BASH and MAN failure


Hi,

On Mon, 08 Apr 2013 11:53:33 -0400 Larry Hall (Cygwin) wrote:
...
have you looked at this FAQ?
<http://cygwin.com/faq-nochunks.html#faq.using.fixing-fork-failures>
...

Nothing works, but I identified were the failure happens.

It is in the script /etc/profile.d/tzset.sh

I have done a profile file without the irrelevant lines.

$ cat prof
# Run all of the profile.d scripts
# Note that these are supplied by separate packages
# Ascending alphanumerical order enforced
if [ -d "/etc/profile.d" ]; then
        while read f; do
                if [ -f "${f}" ]; then
                        . "${f}"
                fi
        done <<- EOF
        `/bin/find -L /etc/profile.d -type f -iname '*.sh' -or -iname '*.zsh' | LC_ALL=C sort`
        EOF
fi
#
$

I have erased everything but tzset.sh from /etc/profile.d
I have put a script A.sh, just to be sure that prof works

$ ls /etc/profile.d/
A.sh  tzset.sh

$ cat /etc/profile.d/A.sh
echo "A"

$ cat tzset.sh
...
test -z "$TZ" && export TZ=$(/usr/bin/tzset)

$ unset TZ
$ ./prof
A
      1 [main] bash 660 C:\cygwin\bin\bash.exe: *** fatal error - prefork: couldn't create pipe process trackerWin32 error 161

$ set
...
SYSTEMROOT='C:\WINDOWS'
TEMP=/cygdrive/c/DOCUME~1/rmedina/CONFIG~1/Temp
TERM=xterm-256color
TMP=/cygdrive/c/DOCUME~1/rmedina/CONFIG~1/Temp
UID=1003
...

You see that TZ is not set.

I one runs tzset.sh directly the message is not writen, but still TZ is not
set.

$ /etc/profile.d/tzset.sh

$ set
...
SYSTEMROOT='C:\WINDOWS'
TEMP=/cygdrive/c/DOCUME~1/rmedina/CONFIG~1/Temp
TERM=xterm-256color
TMP=/cygdrive/c/DOCUME~1/rmedina/CONFIG~1/Temp
UID=1003
...


but if the command is given directly in the shell it works!

$ test -z "$TZ" && export TZ=$(/usr/bin/tzset)

$ set
...
SYSTEMROOT='C:\WINDOWS'
TEMP=/cygdrive/c/DOCUME~1/rmedina/CONFIG~1/Temp
TERM=xterm-256color
TMP=/cygdrive/c/DOCUME~1/rmedina/CONFIG~1/Temp
TZ=America/Caracas
UID=1003
...


I hope that this information be usefull
Bye
RM

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]