dlal66 has asked for the wisdom of the Perl Monks concerning the following question:
The exec'd program is also a Perl/Tk program. It basically queries certain nodes an displays a graph and is a bit time consuming. It is/was working great up until I decided to display a progressbar to indicate progress. Now I intermittently get the following errorif (!($pid = fork)) { # child process -- returns with 0 as pid exec('/root/Phase2/OperatorView4/recurse5.pl', $btnMpIp); } else { # we are in parent process; Store the process ID of the chil +d in the hash $hash_ref->{$btnMpIp}->{processid} = $pid; } }
What would be the reason for this and why does it happen intermittently? Thank you much in advanceXlib: unexpected async reply (sequence 0x8d)! X Error of failed request: BadIDChoice (invalid resource ID chosen for this connection) Major opcode of failed request: 53 (X_CreatePixmap) Resource id in failed request: 0x480000d Serial number of failed request: 145 Current serial number in output stream: 143
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perk/Tk fork()predicament
by zentara (Cardinal) on Feb 06, 2012 at 17:05 UTC |