Re: -P fix

2002-09-11 Thread Pavel Roskin
Hello, Oskar! My solution is to add another option -p that will allow you to specify a file that the last working directory is written to. That's fine. A new function print_last_working_directory was created since this functionality is needed in two places in main.c. I also attempted to

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