Merge lp:~ricmm/ubuntu-app-launch/signal-start-on-started into lp:ubuntu-app-launch/13.10

Proposed by Ricardo Mendoza
Status: Merged
Approved by: Gerry Boland
Approved revision: 78
Merged at revision: 78
Proposed branch: lp:~ricmm/ubuntu-app-launch/signal-start-on-started
Merge into: lp:ubuntu-app-launch/13.10
Diff against target: 12 lines (+1/-1)
1 file modified
libupstart-app-launch/upstart-app-launch.c (+1/-1)
To merge this branch: bzr merge lp:~ricmm/ubuntu-app-launch/signal-start-on-started
Reviewer Review Type Date Requested Status
Gerry Boland (community) Approve
Charles Kerr (community) Approve
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+190720@code.launchpad.net

Commit message

Currently we are signalling observers that app started on the "starting" signal. This is racy, as the final exec might not have happened yet, so if a client tries to get the primary PID before the process has fully started, it might get one of the transitional PIDs of the scripts that run in between.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Charles Kerr (charlesk) wrote :

Looks right to me.

review: Approve
Revision history for this message
Gerry Boland (gerboland) wrote :

Works for me

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'libupstart-app-launch/upstart-app-launch.c'
2--- libupstart-app-launch/upstart-app-launch.c 2013-09-26 21:48:27 +0000
3+++ libupstart-app-launch/upstart-app-launch.c 2013-10-11 16:13:41 +0000
4@@ -338,7 +338,7 @@
5 gboolean
6 upstart_app_launch_observer_add_app_start (upstart_app_launch_app_observer_t observer, gpointer user_data)
7 {
8- return add_app_generic(observer, user_data, "starting", &start_array);
9+ return add_app_generic(observer, user_data, "started", &start_array);
10 }
11
12 gboolean

Subscribers

People subscribed via source and target branches