Re: hardcoded /tmp instead of TMPDIR

2002-09-11 Thread Pavel Tsekov
On Wed, 11 Sep 2002, Pavel Roskin wrote: I still hope to avoid the pipe completely, since it's not portable to Cygwin. Not so easy. It I run tcsh 3log, /proc shows that the open file descriptors are 15, 16, 17, 18 and 19. The same if I run tcsh. In other words, tcsh closes the files

Re: hardcoded /tmp instead of TMPDIR

2002-09-11 Thread Pavel Roskin
Hello! Do you see any way to use AF_INET sockets at all ? I think it is not possible - where is the shell going to redirect the output of 'pwd' ? We can always make a small helper application and put it to the same directory as cons.saver. By the way, I forgot using a regular file in the

Re: hardcoded /tmp instead of TMPDIR

2002-09-11 Thread Pavel Roskin
Hello! Again replying to myself :-) Another solution - use some predefined token on stdout. In other words, replace pwd with something like: echo Attention mc pid 1923: ; pwd; echo mc pid 1923 done Better yet - output the working directory after the kill, not before, and use stdout.

Re: hardcoded /tmp instead of TMPDIR

2002-09-11 Thread Pavel Tsekov
On Wed, 11 Sep 2002, Pavel Roskin wrote: Hello! Again replying to myself :-) Another solution - use some predefined token on stdout. In other words, replace pwd with something like: echo Attention mc pid 1923: ; pwd; echo mc pid 1923 done Better yet - output the working

Re: hardcoded /tmp instead of TMPDIR

2002-09-11 Thread Pavel Roskin
Unfortunately, the amount of the requires changes make it unrealistic to implement this proposal before 4.6.0. If help is provided do you think it can be achieved ? The coding is not a problem. Remove all pipes and all redirections from pwd, put pwd after kill, dissolve synchronize() in

Re: hardcoded /tmp instead of TMPDIR

2002-09-10 Thread Pavel Roskin
Hello! BTW, it would be nice if mc created temporary files in $TMPDIR/mc-username instead of $HOME/.mc/tmp (the ones with directory names inside as I understand). For example, I have in /tmp: ksocket-nerijus/ mcop-nerijus/ orbit-nerijus/ orbit-root/ Thanks for the suggestion! I have

Re: hardcoded /tmp instead of TMPDIR

2002-09-09 Thread Pavel Roskin
Hello, Oskar! MC does not use $TMP. (The reporter must have meant $TMPDIR.) I did a grep (with MC of course :) for files with /tmp and found one place in subshell.c. This patch ought to fix it. I tested it (with tcsh as shell of course) and it works fine. You forgot some debugging

hardcoded /tmp instead of TMPDIR

2002-09-05 Thread Oskar Liljeblad
According to the bug report at http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=142179repeatmerged=yes MC does not use $TMP. (The reporter must have meant $TMPDIR.) I did a grep (with MC of course :) for files with /tmp and found one place in subshell.c. This patch ought to fix it. I tested it

Re: hardcoded /tmp instead of TMPDIR

2002-09-05 Thread Nerijus Baliunas
On Thu, 5 Sep 2002 22:16:55 +0200 Oskar Liljeblad [EMAIL PROTECTED] wrote: MC does not use $TMP. (The reporter must have meant $TMPDIR.) BTW, it would be nice if mc created temporary files in $TMPDIR/mc-username instead of $HOME/.mc/tmp (the ones with directory names inside as I understand).