Bug#610719: dpkg: [S-S-B] make start-stop-daemon find out the pid of forked processes

2011-02-14 Thread Peter Gyongyosi
Hi, On 02/14/2011 08:00 AM, Guillem Jover wrote: This feature could be used in two scenarios: 1) the program forks itself but it cannot output its PID into a file Why? If it's because it does not have such option, then the correct fix is to add it, it should not amount to more than 10

Bug#610719: dpkg: [S-S-B] make start-stop-daemon find out the pid of forked processes

2011-01-22 Thread Peter Gyongyosi
Hi, On 01/21/2011 07:18 PM, Jonathan Nieder wrote: > >> +start_trace(pid_t pid) >> +{ >> +wait(NULL); >> + >> +int retries; >> +const int max_retries = 10; >> + >> +for (retries = 0; retries < max_retries; ++retries) { >> +if (ptrace (PTRACE_SETOPTIONS, pid, NULL, >> +

Bug#610719: dpkg: [S-S-B] make start-stop-daemon find out the pid of forked processes

2011-01-21 Thread Peter Gyongyosi
gests: ii apt0.7.25.3ubuntu9.1 Advanced front-end for dpkg -- no debconf information *** /home/gyp/tmp/dpkg_tracepid_patch.diff commit 719becf0340b8451a5d1f56e8956290932fdfb5f Author: Peter Gyongyosi Date: Fri Jan 21 17:10:33 2011 +0100 added --trace-pid functionality to