OriginalBugID: 1449 Bug
Jim A. Galbraith
The following line is an excerpt from a much larger script. It works as expected on NT and Dec Alpha machines.
set PID [ eval exec <some program name> ]
puts "PID: $PID"
This excerpt may be executed multiple times, based on the desires of the user. After the first execution a valid PID is presented. After coming around and executing it a second, third, ... time, the pid displayed contains:
"-1 xxxxxxxx" or "0 xxxxxxxx", where xxxxxxxx is a valid, correct PID. (NOTE: the double quotes are not present). The program being executed does indeed get created and the PID displayed is correct - only the leading -1/0 are in question.
I expect that all invocations of this would return a valid PID or an error for all invocations. This behavior is not present on the NT and Dec alpha machines I have run this on.
This works as expected in 8.0.5 on IRIX and NT.
-- 12/03/1999 hobbs