> On 2012.07.23 13:51, sebastiank wrote:
>> On 2012.07.21 20:29, Ludovic Rousseau wrote:
>> You may have to play with "ulimit -c unlimited" to allow the creation
>> of a core file.
> After doing some research about ulimit, I’m afraid to say that I can’t 
> enable the generation of core dumps.

Well, maybe I found a solution to enable core dumps for the running pcscd 
process without the need of a reboot or re-login:

http://superuser.com/questions/404239/setting-ulimit-on-a-running-process

-----
PID=$( pidof pcscd )
cat /proc/$PID/limits | grep -i -e "core file"
gdb -p $PID
(gdb) set $rlim = &{0ll, 0ll}
(gdb) print getrlimit(4, $rlim)
(gdb) print *$rlim
(gdb) set *$rlim[0] = -1
(gdb) print setrlimit(4, $rlim)
(gdb) quit
-----

cat /proc/$PID/limits | grep -e "core file"
Before running gdb:
Max core file size  0 unlimited bytes
After running gdb:
Max core file size  unlimited unlimited bytes

=========
Regards

Sebastian
=========

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel

Reply via email to