Skip Menu |

This queue is for tickets about the Cwd CPAN distribution.

Report information
The Basics
Id: 41755
Status: open
Priority: 0/
Queue: Cwd

People
Owner: Nobody in particular
Requestors: alanhaggai [...] alanhaggai.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: (no value)
Fixed in: (no value)



Subject: getdcwd does not work as expected within a forked process in Win32
Hi, getdcwd does not return the correct drive/directory combination within a forked process in Win32. Please check the accompanying program: #!perl -wl use strict; use Cwd; if (fork) { chdir 'C:/Windows'; print getdcwd; # Output: C:\Windows } else { chdir 'C:/temp'; print getdcwd; # Output: C:\Windows } Regards, Alan Haggai Alavi. -- The difference makes the difference
What version of perl is this? Is it ActivePerl or something else? Also, how do you know that the chdir() commands succeeded? -Ken
On Wed Dec 17 12:51:17 2008, KWILLIAMS wrote: Show quoted text
> What version of perl is this? Is it ActivePerl or something else? > Also, how do you know that the chdir() commands succeeded? > > -Ken
Hi Ken, Perl: ActivePerl (v5.10.0) Operating System: Windows XP Professional Service Pack 2 (Build 2600) cwd() inside each of the processes return the correct paths. So, it seems chdir() succeeded. I did try with sleep() to ensure that concurrent executions are not interfering. The problem persists. Regards, Alan Haggai Alavi. -- The difference makes the difference