Yes, the code snippet works for me and I believe I've created confusion here - not knowing about flock(2) and that apport is always being run as root, sorry.
hggdh, can you give more information? Has the problem happened to you again? -- stale lock prevents apport runs https://bugs.launchpad.net/bugs/137567 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs