Convert pidXwait() from macro to function
[mmh] / DATE
1 2012-12-08