Re: [Lazarus] Cannot read symbolic link /proc/PID/exe: No such file or directory
2008/12/23 Roland Turcan k...@rotursoft.sk: 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. 20MB? that seems a bit excessive, try and compile with -XX -Xs and not with -g*. read this: http://wiki.freepascal.org/Size_Matters henry ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Cannot read symbolic link /proc/PID/exe: No such file or directory
Hello Henry, I am pissed off too from the size, because that application is a bit bigger than HelloWorld. :-) but 20 MB is too big. Many many thanks to you, because after applying that I've got 2.8MB what I like much more. It is more close to Delphi ones which is about half of megabyte only. TRoland; 23.12.2008 10:47 - Henry Vermaak henry.verm...@gmail.com HV 2008/12/23 Roland Turcan k...@rotursoft.sk: 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. HV 20MB? that seems a bit excessive, try and compile with -XX -Xs and HV not with -g*. HV read this: http://wiki.freepascal.org/Size_Matters HV henry -- Best regards, TRoland http://www.rotursoft.sk http://exekutor.rotursoft.sk ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Cannot read symbolic link /proc/PID/exe: No such file or directory
ls -l /proc/12415/exe ls: cannot read symbolic link /proc/13415/exe: No such file or directory lrwxrwxrwx 1 roland roland 0 2008-12-23 00:20 /proc/13415/exe Why does it behave this way? Are you root? $ ls -l /proc/1/exe ls: cannot read symbolic link /proc/1/exe: Permission denied lrwxrwxrwx 1 root root 0 2008-12-23 07:30 /proc/1/exe # ls -l /proc/1/exe lrwxrwxrwx 1 root root 0 2008-12-23 07:30 /proc/1/exe - /sbin/init You'll probably find that it will work if the process you are trying to look at is owned by yourself or if you are root. I think that what the error message is telling you is that it can see the symlink but can't follow it. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Cannot read symbolic link /proc/PID/exe: No such file or directory
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 k...@rotursoft.sk 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 Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus