negative-pid-cygwin

This commit is contained in:
vivian.mcphail 2005-05-03 14:54:20 +00:00
parent ed349264ce
commit 7c13559ec6

View File

@ -97,7 +97,8 @@ gettemp path doopen domkdir slen = do
-- --
-- replace end of template with process id, and rest with randomness -- replace end of template with process id, and rest with randomness
-- --
;pid <- liftM show $ getProcessID ;pid <- liftM show $ do {v <- getProcessID ; return $ abs v} -- getProcessID returns a negative number? why, dunno, but the minus sign screws up Module header names, illegal char.
-- ;pid <- liftM show $ getProcessID
;let (rest, xs) = merge tmpl pid ;let (rest, xs) = merge tmpl pid
;as <- randomise rest ;as <- randomise rest
;let tmpl' = as ++ xs ;let tmpl' = as ++ xs