Hello All, I am going to answer to my own question in hope, that it will help other people.
I wanted to decrease the size of executable and therefore I used UPX for get it smaller. It really got smaller, my original size was about 20MB and after UPX only 5MB. But UPX causes the problem with symlink to /proc/*/exe. When original file is executed, then exe symlink points to correct exefile, but compressed one causes "cannot read symbolic link". <<< 23.12.2008 0:29 - Roland Turcan "[email protected]" >>> RT> Hello All, RT> I need to assure, that my sub-application has started or to kill it, RT> when not necessary. RT> I use to find out the process ID /proc/*/exe file, but strange is RT> that my application is 'registered' into /proc in not readable way. RT> When I try to read out the content of /proc/"PID"/exe, then I receive RT> this error message: RT> e.g.: RT> ls -l /proc/12415/exe RT> ls: cannot read symbolic link /proc/13415/exe: No such file or RT> directory RT> lrwxrwxrwx 1 roland roland 0 2008-12-23 00:20 /proc/13415/exe RT> Why does it behave this way? RT> Thanks in advance. -- Best regards, TRoland http://www.rotursoft.sk http://exekutor.rotursoft.sk _______________________________________________ Lazarus mailing list [email protected] http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
