Operating System - HP-UX
1833847 Members
2193 Online
110063 Solutions
New Discussion

switching to a running process after a file lock

 
John M. Liberi Jr.
Occasional Contributor

switching to a running process after a file lock

Hello,
I have created a shared library (using c) that will lock a file with the command fcntl. The library works fine, I just want to add one more piece of functionality to it. Once an executable has been locked, I would like to be able to have the next invocation of the executable bring the previous to the foreground of the current desktop. I am not sure but I think the answer lays in dtterm or CDE switching to the active pid. I can???t figure out a way for motif to handle this unless I catch a signal from the current process to the previous and try to use the unpredictable motif function XmProcessTraversal.